This commit is contained in:
CalciteM 2019-06-23 15:27:50 +08:00
parent 4b96b675e5
commit 9e5d6feb7d
2 changed files with 3 additions and 1 deletions

View File

@ -119,8 +119,9 @@ int NineChess::millTable[(N_RINGS + 2) * N_SEATS][N_DIRECTIONS][N_RINGS - 1] = {
NineChess::NineChess()
{
// 单独提出board免得每次都写data.board;
// 单独提出 board免得每次都写 context.board;
board_ = context.board;
// 默认选择第1号规则即“打三棋”
setContext(&RULES[1]);
}

View File

@ -240,6 +240,7 @@ public:
{
return context.board;
}
// 获取棋子位置(c, p)
bool getPieceCP(const Player &player, const int &number, int &c, int &p);