flutter: recorder 稍作修改
This commit is contained in:
parent
b75d98b661
commit
780a5c6e6e
src/ui/flutter/lib/mill
|
@ -122,7 +122,6 @@ class Move {
|
||||||
|
|
||||||
// 'move' is the UCI engine's move-string
|
// 'move' is the UCI engine's move-string
|
||||||
String move;
|
String move;
|
||||||
String moveName;
|
|
||||||
|
|
||||||
MoveType type;
|
MoveType type;
|
||||||
|
|
||||||
|
|
|
@ -426,7 +426,7 @@ class Position {
|
||||||
this.move = m;
|
this.move = m;
|
||||||
|
|
||||||
//StepName.translate(this, move);
|
//StepName.translate(this, move);
|
||||||
//_recorder.stepIn(move, this);
|
_recorder.stepIn(move, this);
|
||||||
|
|
||||||
// 交换走棋方
|
// 交换走棋方
|
||||||
//_sideToMove = Color.opponent(_sideToMove);
|
//_sideToMove = Color.opponent(_sideToMove);
|
||||||
|
|
|
@ -88,7 +88,7 @@ class MillRecorder {
|
||||||
var manualText = '';
|
var manualText = '';
|
||||||
|
|
||||||
for (var i = 0; i < _history.length; i++) {
|
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';
|
if ((i + 1) % cols == 0) manualText += '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue