新增五子棋游戏

This commit is contained in:
2025-10-28 17:22:49 +08:00
parent b7a57539f5
commit 38cd441908
7 changed files with 1019 additions and 1 deletions

View File

@@ -152,6 +152,12 @@ async def handle_command(game_type: str, command: str,
game = IdiomGame()
return await game.handle(command, chat_id, user_id)
# 五子棋
if game_type == 'gomoku':
from games.gomoku import GomokuGame
game = GomokuGame()
return await game.handle(command, chat_id, user_id)
# 未知游戏类型
logger.warning(f"未知游戏类型: {game_type}")
return "❌ 未知的游戏类型"