diff --git a/src/ui/flutter/lib/mill/position.dart b/src/ui/flutter/lib/mill/position.dart index 903f4189..1e7f9357 100644 --- a/src/ui/flutter/lib/mill/position.dart +++ b/src/ui/flutter/lib/mill/position.dart @@ -392,7 +392,7 @@ class Position { return pieceOnBoardCount[Color.black] + pieceOnBoardCount[Color.white]; } - int GetNPiecesInHand() { + int getNPiecesInHand() { pieceInHandCount[Color.black] = rule.piecesCount - pieceOnBoardCount[Color.black]; pieceInHandCount[Color.white] = @@ -432,7 +432,7 @@ class Position { return -1; } - GetNPiecesInHand(); + getNPiecesInHand(); pieceToRemoveCount = 0; winner = Color.nobody; diff --git a/src/ui/flutter/lib/widgets/game_page.dart b/src/ui/flutter/lib/widgets/game_page.dart index e8b8e549..5d04b4f2 100644 --- a/src/ui/flutter/lib/widgets/game_page.dart +++ b/src/ui/flutter/lib/widgets/game_page.dart @@ -326,8 +326,8 @@ class _GamePageState extends State with RouteAware { String getGameOverReasonString(GameOverReason reason, String winner) { String loseReasonStr; - String winnerStr = - winner == Color.black ? S.of(context).black : S.of(context).white; + //String winnerStr = + // winner == Color.black ? S.of(context).black : S.of(context).white; String loserStr = winner == Color.black ? S.of(context).white : S.of(context).black;