diff --git a/src/game/position.cpp b/src/game/position.cpp index 75509f7e..97a55dcd 100644 --- a/src/game/position.cpp +++ b/src/game/position.cpp @@ -26,6 +26,9 @@ #include "option.h" #include "zobrist.h" +// 当前棋局的字符提示 +string tips; + StateInfo::StateInfo() { if (position != nullptr) { @@ -118,7 +121,7 @@ Position &Position::operator= (const Position &pos) move = pos.move; memcpy(cmdline, pos.cmdline, sizeof(cmdline)); cmdlist = pos.cmdlist; - tips = pos.tips; + //tips = pos.tips; return *this; } @@ -143,7 +146,7 @@ Position &Position::operator= (Position &pos) move = pos.move; memcpy(cmdline, pos.cmdline, sizeof(cmdline)); cmdlist = pos.cmdlist; - tips = pos.tips; + //tips = pos.tips; return *this; } diff --git a/src/game/position.h b/src/game/position.h index 82822096..6c9bafb0 100644 --- a/src/game/position.h +++ b/src/game/position.h @@ -39,6 +39,8 @@ class AIAlgorithm; class StateInfo; class Node; +extern string tips; + // 棋局结构体,算法相关,包含当前棋盘数据 // 单独分离出来供AI判断局面用,生成置换表时使用 class Position @@ -340,9 +342,6 @@ private: // 玩家用时(秒) time_t elapsedSeconds[COLOR_COUNT]; - - // 当前棋局的字符提示 - string tips; }; // 棋类(在数据模型内,玩家只分先后手,不分黑白)