From 61f61391aa2b4ca5b674e30dbd4357fff84c5575 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 31 Oct 2020 11:26:43 +0800 Subject: [PATCH] =?UTF-8?q?position:=20Position::set()=20=E4=B8=AD?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AF=B9=20phase=20=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=90=8E=E9=80=80=E5=87=BA=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 即允许走入 Position::set() 时 phrase 是任意状态。 --- src/position.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/position.cpp b/src/position.cpp index 4eb7ee31..a62686d8 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -198,9 +198,11 @@ Position &Position::set(const string &fenStr, Thread *th) Square sq = SQ_A1; std::istringstream ss(fenStr); +#if 0 if (this->phase != PHASE_NONE && this->phase != PHASE_READY && this->phase != PHASE_GAMEOVER) { goto out; } +#endif std::memset(this, 0, sizeof(Position));