diff --git a/src/ui/flutter_app/lib/game_page/services/engine/position.dart b/src/ui/flutter_app/lib/game_page/services/engine/position.dart index 77946bedd..ba17814c2 100644 --- a/src/ui/flutter_app/lib/game_page/services/engine/position.dart +++ b/src/ui/flutter_app/lib/game_page/services/engine/position.dart @@ -774,6 +774,10 @@ class Position { _grid[squareToIndex[_currentSquare]!] = PieceColor.none; _currentSquare = s; + + // Set square number + sqAttrList[s].placedPieceNumber = placedPieceNumber; + final int n = _millsCount(_currentSquare); if (n == 0) { @@ -918,6 +922,9 @@ class Position { action = Act.place; GameController().gameInstance.blurIndex = squareToIndex[sq]; + // Set square number + placedPieceNumber = sqAttrList[sq].placedPieceNumber; + return const GameResponseOK(); }