修正了同一点可以重复落子的错误

This commit is contained in:
lxbpxylps@126.com 2021-10-06 22:19:39 +08:00
parent c16ebab17f
commit 420ba224f2

View File

@ -236,6 +236,9 @@ void APP_Gobang_MoveChess(void)
case JOY_OK_DOWN:
{
if (map[cursor_x][cursor_y] != NO_CHESS)
break;
chess_kind = map[cursor_x][cursor_y] = turn == BLACK_TURN ? BLACK_CHESS : WHITE_CHESS;
APP_Gobang_DispGobang();
return;