summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-27 10:30:21 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:35 (GMT)
commit4859ec25ba4fbcd27dfa90ddc2d8b9b798e8d520 (patch)
tree30de07c524b8e7eeae37cd23cbc82b903fd9ee08
parentb44e06807bdee9cea4b7a5a497b266bb9f604ab4 (diff)
Hand.mjStr removed
-rw-r--r--src/hand.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/hand.py b/src/hand.py
index 2d9212e..b42dbe8 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -107,7 +107,6 @@ class Hand(object):
self.__won = None
self.__score = None
self.__callingHands = None
- self.mjStr = ''
self.__mjRule = None
self.ruleCache = {}
self.__lastTile = None
@@ -152,7 +151,6 @@ class Hand(object):
for part in inString.split():
partId = part[0]
if partId == 'm':
- self.mjStr += ' ' + part
if len(part) > 1:
self.__lastSource = part[1]
if len(part) > 2:
@@ -161,14 +159,12 @@ class Hand(object):
if len(part[1:]) > 8:
raise Exception(
'last tile cannot complete a kang:' + inString)
- self.mjStr += ' ' + part
if len(part) > 3:
self.__lastMeld = Meld(part[3:])
self.__lastTile = Tile(part[1:3])
else:
if part != 'R':
tileStrings.append(part)
-
self.bonusMelds, tileStrings = self.__separateBonusMelds(tileStrings)
tileString = ' '.join(tileStrings)
self.tiles = TileList(tileString.replace(' ', '').replace('R', ''))