Shy2593666979
Shy2593666979
## My Thinks 五子棋当有一方对角线上 或者 横竖线上存在五子连珠时即获胜,应该将黑白方选择的落棋点更新到board中,再去判断是否 Win ! 目前你们官方写的是获取到当前Agent落棋点Row 和 Col,根据Row 和 Col判断当前行列上以及对角线是否存在五子连珠,但是忘记当前落棋点也是一个棋子! ## Code **文件路径** ```shell examples/game_gomoku/code/board_agent.py ``` **Your official code** ```python if self.check_win(row, col, NAME_TO_PIECE[x["name"]]): content = f"The...
棋子颜色搞混
文件路径 ``` examples/game_gomoku/code/board_agent.py ``` 使用matplotlib描述棋子颜色时搞混 ``` if board[y, x] == NAME_TO_PIECE[NAME_WHITE]: ⭐ 这里应该是NAME_BLACK circle = patches.Circle( (x, y), 0.45, edgecolor="black", facecolor="black", zorder=10, ) ax.add_patch(circle) elif board[y, x] == NAME_TO_PIECE[NAME_BLACK]: ⭐...