修正了同一点可以重复落子的错误
This commit is contained in:
parent
c16ebab17f
commit
420ba224f2
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user