flutter: recorder 稍作修改
This commit is contained in:
parent
b75d98b661
commit
780a5c6e6e
|
@ -122,7 +122,6 @@ class Move {
|
|||
|
||||
// 'move' is the UCI engine's move-string
|
||||
String move;
|
||||
String moveName;
|
||||
|
||||
MoveType type;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue