summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-24 13:18:05 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 11:47:07 (GMT)
commit127466eb2aa1a56634b990a0fb96ac0825c45bda (patch)
treeac86c1d37ed13851d91d97b8dfa04f1e5ff6910e
parent9ba67dd3044afca1d37385f250f6dd6c076d15b4 (diff)
Hand: re-order things in __init__ for better readability
-rw-r--r--src/hand.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hand.py b/src/hand.py
index 9dd5aef..e543f05 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -94,17 +94,18 @@ class Hand(object):
if hasattr(self, 'string'):
# I am from cache
return
- self._player = weakref.ref(player)
- self.indent = prevHand.indent + 1 if prevHand else 0
- # two shortcuts for speed:
+ # shortcuts for speed:
+ self._player = weakref.ref(player)
self.ruleset = self.player.game.ruleset
if self.player:
self.intelligence = self.player.intelligence
else:
self.intelligence = AIDefault()
+
self.string = string
self.__robbedTile = Tile.unknown
+ self.indent = prevHand.indent + 1 if prevHand else 0
self.prevHand = prevHand
self.__won = None
self.__score = None