From 80025cad678a6a71aa44872f5ba35ca1a2eeffbb Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 7 Nov 2020 01:38:21 +0800 Subject: [PATCH] =?UTF-8?q?flutter:=20=E4=BF=AE=E5=A4=8D=20index=20?= =?UTF-8?q?=E8=B6=8A=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/flutter/lib/mill/position.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/flutter/lib/mill/position.dart b/src/ui/flutter/lib/mill/position.dart index 5ece018d..4d62ca19 100644 --- a/src/ui/flutter/lib/mill/position.dart +++ b/src/ui/flutter/lib/mill/position.dart @@ -3,7 +3,7 @@ import 'mill-base.dart'; class Position { // - BattleResult result = BattleResult.Pending; + BattleResult result = BattleResult.pending; String _sideToMove; List _board; // 8 * 3 @@ -16,9 +16,9 @@ class Position { void initDefaultPosition() { // _sideToMove = Side.black; - _board = List(40); // SQUARE_NB + _board = List(64); // 7 * 7 - for (var i = 0; i < 40; i++) { + for (var i = 0; i < 64; i++) { _board[i] ??= Piece.Empty; } @@ -107,7 +107,7 @@ class Position { _recorder.lastCapturedPosition = tempPosition.toFen(); } - result = BattleResult.Pending; + result = BattleResult.pending; return true; }