Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 551f982

Browse files
committed
Fix a bug with not winning by damaten tsumo
1 parent 7c41c63 commit 551f982

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/tenhou/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,9 @@ def start_game(self):
256256

257257
# draw and discard
258258
if '<T' in message:
259+
win_suggestions = ['t="16"', 't="48"']
259260
# we won by self draw (tsumo)
260-
if 't="16"' in message:
261+
if any(i in message for i in win_suggestions):
261262
self._send_message('<N type="7" />')
262263
continue
263264

0 commit comments

Comments
 (0)