summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-30 21:34:22 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:38 (GMT)
commit9b7bb161abbc5e33f632bf264e5897b228a51b4b (patch)
treec9ca2576908d5bd8597c638736e76873fa687173
parentf59c69bf0d90bdef5938386ab9dbb860705c3332 (diff)
Player: better assertion error message
-rw-r--r--src/player.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.py b/src/player.py
index dde83ce..105da51 100644
--- a/src/player.py
+++ b/src/player.py
@@ -483,7 +483,7 @@ class PlayingPlayer(Player):
self.game.debug(' with hand being {}'.format(self.hand))
melds = concealed[:]
self.game.winner = self
- assert lastMeld in melds, '%s: melds=%s lastMeld=%s lastTile=%s withDiscard=%s' % (
+ assert lastMeld in melds, 'lastMeld not in melds: concealed=%s: melds=%s lastMeld=%s lastTile=%s withDiscard=%s' % (
self._concealedTiles, melds, lastMeld, lastTile, withDiscard)
if withDiscard:
PlayingPlayer.addConcealedTiles(