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

Commit d8cba6c

Browse files
committed
Migrate to the mahjong==1.0.5
1 parent b4d5835 commit d8cba6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

project/game/ai/first_version/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from mahjong.agari import Agari
55
from mahjong.constants import AKA_DORA_LIST, CHUN, HAKU, HATSU
66
from mahjong.hand_calculating.divider import HandDivider
7-
from mahjong.hand_calculating.hand import FinishedHand
7+
from mahjong.hand_calculating.hand import HandCalculator
88
from mahjong.meld import Meld
99
from mahjong.shanten import Shanten
1010
from mahjong.tile import TilesConverter
@@ -44,7 +44,7 @@ def __init__(self, player):
4444
self.shanten = Shanten()
4545
self.defence = DefenceHandler(player)
4646
self.hand_divider = HandDivider()
47-
self.finished_hand = FinishedHand()
47+
self.finished_hand = HandCalculator()
4848
self.previous_shanten = 7
4949
self.current_strategy = None
5050
self.waiting = []

project/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
mahjong==1.0.3
1+
mahjong==1.0.5
22
requests==2.18.4
33
flake8==3.4.1

0 commit comments

Comments
 (0)