summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-23 12:06:08 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 11:47:06 (GMT)
commit9d85bd21bceff05f9c9e93df96d51e59f4a55807 (patch)
treebdeaa96c0e43aca82c961f1959141ddd3d8c47a2
parent9706bfc948522403c7de1383c94d0a175b2ac2e5 (diff)
Player: remove a few asserts we do not need anymore
-rw-r--r--src/player.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/player.py b/src/player.py
index 09b8771..5689c6f 100644
--- a/src/player.py
+++ b/src/player.py
@@ -358,7 +358,6 @@ class Player(StrMixin):
"""add to my tiles"""
assert len(tiles)
for tile in tiles:
- assert isinstance(tile, Tile), 'tile:%s' % tile
if tile.isBonus:
self._bonusTiles.append(tile)
else:
@@ -392,8 +391,6 @@ class Player(StrMixin):
def computeHand(self, withDiscard=None):
"""returns Hand for this player"""
assert not (self._concealedMelds and self._concealedTiles)
- assert isinstance(self.lastTile, (Tile, type(None)))
- assert isinstance(withDiscard, (Tile, type(None)))
melds = ['R' + ''.join(str(x) for x in sorted(self._concealedTiles))]
if withDiscard:
melds[0] += withDiscard
@@ -483,7 +480,6 @@ class PlayingPlayer(Player):
melds = concealed[:]
self.game.winner = self
if withDiscard:
- assert isinstance(withDiscard, Tile), withDiscard
PlayingPlayer.addConcealedTiles(
self,
[withDiscard]) # this should NOT invoke syncHandBoard