summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-21 14:09:54 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:12 (GMT)
commit2482451d5ecd0d4ac6ba4fac6f2b37c5cb2b2eb3 (patch)
tree89662b3e9f2f52cd5d2357b6fcb077d945b1192f
parente861763c9b350292e005d2e2a30588b9af4e009d (diff)
improve assertion message
-rw-r--r--src/player.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.py b/src/player.py
index e5b9980..c423a48 100644
--- a/src/player.py
+++ b/src/player.py
@@ -498,8 +498,8 @@ class PlayingPlayer(Player):
melds = concealed[:]
self.game.winner = self
assert lastMeld in melds, \
- 'lastMeld not in melds: concealed=%s: melds=%s lastMeld=%s lastTile=%s withDiscard=%s' % (
- self._concealedTiles, melds, lastMeld, lastTile, withDiscard)
+ 'lastMeld %s not in melds: concealed=%s: melds=%s lastTile=%s withDiscard=%s' % (
+ lastMeld, self._concealedTiles, melds, lastTile, withDiscard)
if withDiscard:
PlayingPlayer.addConcealedTiles(
self,