modelscope / agentscope

Start building LLM-empowered multi-agent applications in an easier way.
https://doc.agentscope.io/
Apache License 2.0
5.05k stars 309 forks source link

棋子颜色搞混 #193

Closed Shy2593666979 closed 5 months ago

Shy2593666979 commented 5 months ago

文件路径

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)
DavdGao commented 5 months ago

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