Skip to content

Commit 10b7761

Browse files
committed
upd: core
1 parent 7d609b9 commit 10b7761

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def choose_moves(self, game_state: GameState):
193193

194194
return moves
195195

196+
# TODO: 你需要实现一个ai函数
196197

197-
ai_func = GhostAI().choose_moves
198+
ai_func = GhostAI().choose_moves # TODO: 你需要把ai_func替换为自己的ai函数
198199
__all__ = ["ai_func"]

core

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def run(self, ai):
3838
# 0号玩家发送信息
3939
ghosts_op(self.env,ai)
4040

41-
# 1号玩家发送信息
41+
# 等待1号玩家发送信息
4242
get_info = input()
4343
print(f"receive info: {get_info}", file=sys.stderr)
4444

@@ -52,7 +52,7 @@ def run(self, ai):
5252
else:
5353
#当前为1号玩家
5454

55-
# 0号玩家发送信息
55+
# 等待0号玩家发送信息
5656
get_info = input()
5757
print(f"receive info: {get_info}", file=sys.stderr)
5858

0 commit comments

Comments
 (0)