flutter: recorder 稍作修改

This commit is contained in:
Calcitem 2020-11-19 01:14:00 +08:00
parent b75d98b661
commit 780a5c6e6e
3 changed files with 2 additions and 3 deletions

View File

@ -122,7 +122,6 @@ class Move {
// 'move' is the UCI engine's move-string
String move;
String moveName;
MoveType type;

View File

@ -426,7 +426,7 @@ class Position {
this.move = m;
//StepName.translate(this, move);
//_recorder.stepIn(move, this);
_recorder.stepIn(move, this);
//
//_sideToMove = Color.opponent(_sideToMove);

View File

@ -88,7 +88,7 @@ class MillRecorder {
var manualText = '';
for (var i = 0; i < _history.length; i++) {
manualText += '${i < 9 ? ' ' : ''}${i + 1}. ${_history[i].moveName} ';
manualText += '${i < 9 ? ' ' : ''}${i + 1}. ${_history[i].move} ';
if ((i + 1) % cols == 0) manualText += '\n';
}