summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 14:30:13 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 14:30:13 (GMT)
commitae7bdee607d5ae6b78e9e10df9064ae55d3d7e00 (patch)
treed7e5a67f81487b016ebdfebac854f01cfed0cf57
parent89709c2591c1e977fa4108af3f3f87436bd1e36d (diff)
Player.computeHands becomes private: __computeHand
-rw-r--r--src/player.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player.py b/src/player.py
index e2afaa7..0051b1b 100644
--- a/src/player.py
+++ b/src/player.py
@@ -229,7 +229,7 @@ class Player(StrMixin):
"""a readonly tuple"""
# TODO: str or what?
if not self._hand:
- self._hand = self.computeHand()
+ self._hand = self.__computeHand()
return self._hand
@property
@@ -390,7 +390,7 @@ class Player(StrMixin):
self._concealedTiles[0] = tileName
self._hand = None
- def computeHand(self):
+ def __computeHand(self):
"""returns Hand for this player"""
assert not (self._concealedMelds and self._concealedTiles)
melds = list()
@@ -415,7 +415,7 @@ class Player(StrMixin):
if discard:
self.lastTile = discard
self._concealedTiles.append(discard)
- return self.computeHand()
+ return self.__computeHand()
finally:
self.lastTile, self.lastSource = save
if discard: