flutter: 修改 moves 中未 remove 类型的判断方式即改为文本判断

This commit is contained in:
Calcitem 2020-11-30 01:06:36 +08:00
parent ef06033e16
commit fc796a7a27
1 changed files with 2 additions and 1 deletions

View File

@ -1491,7 +1491,8 @@ class Position {
print("recorder.movesCount = ${recorder.movesCount}"); print("recorder.movesCount = ${recorder.movesCount}");
for (int i = recorder.movesCount - 1; i >= 0; i--) { for (int i = recorder.movesCount - 1; i >= 0; i--) {
if (recorder.moveAt(i).type == MoveType.remove) break; //if (recorder.moveAt(i).type == MoveType.remove) break;
if (recorder.moveAt(i).move[0] == '-') break;
posAfterLastRemove = i; posAfterLastRemove = i;
} }