flutter: 删除无用的 scanBattleResult() 等函数

This commit is contained in:
Calcitem 2020-11-23 00:16:11 +08:00
parent 1d7f98e67f
commit 8625f1f8b7
1 changed files with 0 additions and 17 deletions

View File

@ -154,23 +154,6 @@ class Game {
_blurIndex = _focusIndex = Move.invalidMove;
}
GameResult scanBattleResult() {
//
final forPerson = (_position.side == Color.white);
if (scanLongCatch()) {
// born 'repeat' position by oppo
return forPerson ? GameResult.win : GameResult.lose;
}
return (_position.halfMove > 120) ? GameResult.draw : GameResult.pending;
}
scanLongCatch() {
// todo:
return false;
}
get position => _position;
get focusIndex => _focusIndex;