From 420ba224f27303c3a84b1d32b66fb45d48c024fa Mon Sep 17 00:00:00 2001 From: "lxbpxylps@126.com" Date: Wed, 6 Oct 2021 22:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E7=82=B9=E5=8F=AF=E4=BB=A5=E9=87=8D=E5=A4=8D=E8=90=BD=E5=AD=90?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/APP_Gobang/APP_Gobang.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/User/APP_Gobang/APP_Gobang.c b/User/APP_Gobang/APP_Gobang.c index d6becb7..bc6c8d3 100644 --- a/User/APP_Gobang/APP_Gobang.c +++ b/User/APP_Gobang/APP_Gobang.c @@ -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;