parent
386b008362
commit
499468bd04
|
@ -679,7 +679,7 @@ const char* MillGameAi_ab::bestMove()
|
|||
|
||||
// 自动认输
|
||||
if (isMostLose) {
|
||||
sprintf(cmdline, "Player%d give up!", position_.context.turnChar);
|
||||
sprintf(cmdline, "Player%d give up!", position_.context.turnId);
|
||||
return cmdline;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public:
|
|||
|
||||
inline static player_t idToPlayer(int id)
|
||||
{
|
||||
return player_t(id << PLAYER_SHIFT);
|
||||
return id == 1? PLAYER_1 : PLAYER_2;
|
||||
}
|
||||
|
||||
inline static char idToCh(int id)
|
||||
|
|
|
@ -704,7 +704,8 @@ bool Position::giveup(player_t loser)
|
|||
// 打算用个C++的命令行解析库的,简单的没必要,但中文编码有极小概率出问题
|
||||
bool Position::command(const char *cmd)
|
||||
{
|
||||
int r, t;
|
||||
int r;
|
||||
unsigned t;
|
||||
step_t s;
|
||||
int r1, s1, r2, s2;
|
||||
int args = 0;
|
||||
|
|
Loading…
Reference in New Issue