From ae4c8a8b36a77946059e79fb1d8c9e7250449f1c Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sun, 20 Sep 2020 21:28:42 +0800 Subject: [PATCH] =?UTF-8?q?check=5Fgameover=5Fcondition:=20=E5=BD=93?= =?UTF-8?q?=E6=97=A0=E5=AD=90=E5=8F=AF=E8=B5=B0=E6=97=B6=E4=B8=8D=E6=97=B6?= =?UTF-8?q?=E9=83=BD=E5=AE=9A=E4=B8=BA=E6=B8=B8=E6=88=8F=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E8=80=8C=E6=98=AF=E5=85=88=E7=9C=8B=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/position.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index b7f14f09..8e754f79 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1003,10 +1003,8 @@ bool Position::check_gameover_condition() } if (phase == PHASE_MOVING && action == ACTION_SELECT && is_all_surrounded()) { - // TODO: move to next branch - phase = PHASE_GAMEOVER; - if (rule.isLoseButNotChangeSideWhenNoWay) { + phase = PHASE_GAMEOVER; gameoverReason = LOSE_REASON_NO_WAY; winner = ~sideToMove; return true;