diff --git a/lib/game.dart b/lib/game.dart index 52125e6..685145d 100644 --- a/lib/game.dart +++ b/lib/game.dart @@ -271,7 +271,7 @@ class _SudokuGameState extends State with TickerProviderStateMixin { for (int x = 0; x < 9; x++) { for (int y = 0; y < 9; y++) { Position pos = Position(x, y); - Cell cell = _puzzle![x][y]; + Cell cell = _puzzle![y][x]; if (cell.value != 0 && !cell.prefill) {