Skip to content

Commit 6976c9a

Browse files
authored
Merge pull request #2 from diverpet/dev
v1.1.0.1
2 parents b8c7181 + e6d4afd commit 6976c9a

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ MahjongCopilot.spec
2727
libriichi3p/*.pyd
2828
libriichi3p/*.so
2929
chrome_ext/*/
30+
mjai/bot_3p/model.pth

bot/bot.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from common.log_helper import LOGGER
88
from common.mj_helper import meta_to_options, MjaiType
99
from common.utils import GameMode, BotNotSupportingMode
10-
from common.settings import Settings
1110

1211

1312
def reaction_convert_meta(reaction:dict, is_3p:bool=False):
@@ -110,13 +109,8 @@ def _init_bot_impl(self, mode:GameMode=GameMode.MJ4P):
110109
import riichi as libriichi
111110
self.mjai_bot = libriichi.mjai.Bot(engine, self.seat)
112111
elif mode == GameMode.MJ3P:
113-
settings = Settings()
114-
if settings.enable_ot2_for_3p:
115-
import riichi3p
116-
self.mjai_bot = riichi3p.online.Bot(self.seat)
117-
else:
118-
import libriichi3p
119-
self.mjai_bot = libriichi3p.mjai.Bot(engine, self.seat)
112+
import libriichi3p
113+
self.mjai_bot = libriichi3p.mjai.Bot(engine, self.seat)
120114
else:
121115
raise BotNotSupportingMode(mode)
122116

0 commit comments

Comments
 (0)