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

Commit aec010a

Browse files
committed
Fix a bug with wrong honitsu open sets detection
1 parent 9493150 commit aec010a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/mahjong/ai/defence/enemy_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _is_honitsu_open_sets(self, meld_tiles_34):
8585
suits = sorted(suits, key=lambda x: x['count'], reverse=True)
8686

8787
# for honitsu we can have tiles only in one suit
88-
if suits[1]['count'] == 0 or suits[2]['count'] == 0:
88+
if suits[1]['count'] == 0 and suits[2]['count'] == 0:
8989
return True, suits[0]['function']
9090

9191
return False, None

0 commit comments

Comments
 (0)