refactor
This commit is contained in:
parent
4b96b675e5
commit
9e5d6feb7d
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -240,6 +240,7 @@ public:
|
|||
{
|
||||
return context.board;
|
||||
}
|
||||
|
||||
// 获取棋子位置(c, p)
|
||||
bool getPieceCP(const Player &player, const int &number, int &c, int &p);
|
||||
|
||||
|
|
Loading…
Reference in New Issue