From 8625f1f8b7c5807bd08742c93f809dd3f3e33cc2 Mon Sep 17 00:00:00 2001 From: Calcitem <calcitem@outlook.com> Date: Mon, 23 Nov 2020 00:16:11 +0800 Subject: [PATCH] =?UTF-8?q?flutter:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=20scanBattleResult()=20=E7=AD=89=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/flutter/lib/mill/game.dart | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/ui/flutter/lib/mill/game.dart b/src/ui/flutter/lib/mill/game.dart index 5ca73588..ff8dcbc7 100644 --- a/src/ui/flutter/lib/mill/game.dart +++ b/src/ui/flutter/lib/mill/game.dart @@ -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;