Commit 1894caaa authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

--rounds did not work for values>1

parent 1f67e96c
......@@ -775,7 +775,7 @@ class Game(object):
if self.handId > last:
return True
if Options.rounds:
return self.roundsFinished >= 1
return self.roundsFinished >= Options.rounds
elif self.ruleset:
# while initialising Game, ruleset might be None
return self.roundsFinished >= self.ruleset.minRounds
......
......@@ -120,7 +120,7 @@ def parseOptions():
if args.isSet('player'):
Options.player = unicodeString(args.getOption('player'))
if args.isSet('rounds'):
Options.rounds = str(args.getOption('rounds'))
Options.rounds = int(args.getOption('rounds'))
if args.isSet('ai'):
Options.AI = str(args.getOption('ai'))
if args.isSet('csv'):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment