diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index 17dc30a1..a3fb645d 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -106,6 +106,14 @@ class _GamePageState extends State with RouteAware { return; } + // TODO + // WAR: Fix first tap response slow when piece count changed + if (position.phase == Phase.placing && + position.pieceOnBoardCount[PieceColor.black] == 0 && + position.pieceOnBoardCount[PieceColor.white] == 0) { + Game.shared.newGame(); + } + if (Game.shared.isAiToMove() || Game.shared.aiIsSearching()) { return false; }