summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-29 20:08:22 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-06 07:40:55 (GMT)
commit1894caaa2c0b60492783c56ed1070ead0702f6d8 (patch)
treef3f2b51153321882d46a6ae661833debe18acca6
parent1f67e96c53e756732b838f2bf8bc1ec8f2d8bac8 (diff)
--rounds did not work for values>1
-rw-r--r--src/game.py2
-rwxr-xr-xsrc/kajongg.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game.py b/src/game.py
index bf4734b..5f433e0 100644
--- a/src/game.py
+++ b/src/game.py
@@ -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
diff --git a/src/kajongg.py b/src/kajongg.py
index eb55289..51da5df 100755
--- a/src/kajongg.py
+++ b/src/kajongg.py
@@ -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'):