modelscope / agentscope

Start building LLM-empowered multi-agent applications in an easier way.

Home Page:https://doc.agentscope.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

棋子颜色搞混

Shy2593666979 opened this issue · comments

文件路径

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]:  ⭐ 这里应该是NAME_WHITE
                circle = patches.Circle(
                    (x, y),
                    0.45,
                    edgecolor="black",
                    facecolor="white",
                    zorder=10,
                )
                ax.add_patch(circle)

Thanks for your reporting! We will check and fix it as soon as possible.