WAR: 默认50步未决出胜负则和棋

是从摆棋阶段开始算
有吃子不会清零
待修改
This commit is contained in:
CalciteM 2019-07-27 11:56:50 +08:00
parent 8b092ad2ca
commit 79dbab4eaf
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ GameController::GameController(GameScene & scene, QObject * parent) :
timeID(0),
ruleNo_(-1),
timeLimit(0),
stepsLimit(0),
stepsLimit(50),
ai1(1),
ai2(2),
score1(-2),

View File

@ -60,7 +60,7 @@ const struct NineChess::Rule NineChess::RULES[N_RULES] = {
true, // 摆棋满子闷棋只有12子棋才出现算先手负
true, // 走棋阶段不能行动(被“闷”)算负
false, // 剩三子时不可以飞棋
0, // 不计步数
50, // 不计步数
0 // 不计时
},
{
@ -1844,8 +1844,8 @@ void NineChess::setTips()
case NineChess::GAME_OVER:
if (winner == DRAW) {
tips = "双方平局";
score_draw++;
tips = "双方平局!比分 " + to_string(score_1) + ":" + to_string(score_2) + ", 和棋 " + to_string(score_draw);
}
else if (winner == PLAYER1) {
score_1++;