Goal
The board shows a solved sudoku. The small digit in the bottom-right corner of every cell is the digit that cell has
in the target, a second solved sudoku. Turn the board into the target using the moves below. The sudoku stays valid
after every move. Cells that already match the target are green.
Moves
- Rows and columns. Drag the grip on the left of a row onto another row of the same band of three rows, to
swap them. The grips on top do the same for columns within a stack of three columns.
- Bands and stacks. The bigger grips on the right and at the bottom swap whole bands (three rows of
sub-squares) or stacks (three columns of sub-squares).
- Numbers. Drag a number onto another cell of its sub-square (in the same row or column) to swap the two
numbers. This breaks the sudoku, so the conflicts are resolved automatically, see below. While you drag, the board
shows the result, and the cells that change are highlighted.
- Whole board. The buttons rotate it by 90° in either direction or flip it horizontally or vertically.
- Undo takes back the last move, Restart goes back to the start of the game (after asking, because
your moves are lost).
Conflict resolution
There are two ways to repair the sudoku after a number swap:
- Two columns / rows. Only numbers in the same row or column of a sub-square can be swapped. The conflicts
are resolved by exchanging entries only between the two affected columns (or rows).
- Whole chain. Any two numbers of a sub-square can be swapped. The conflicts are resolved by swapping the
two numbers in every cell they chain through, anywhere on the board.
In a game of two random sudokus, and in a scrambled game with the way Both, the button
Conflict resolution below the board shows the way in use and switches it at any time. In a scrambled game
with one way the target was scrambled in that way, so it stays the same during the game and is shown instead of the
button. You choose the way in the New game dialog. The game type and the way are
remembered.
New game
The New game button opens a dialog with the options of the game (starting it loses the current game):
- Two random sudokus. The start and the target are unrelated, so this can take many moves.
- Scrambled. The target is the start with 5, 15 or 40 random moves applied, so it can be reached in at most
that many moves. The number swaps among them use the way of conflict resolution that you choose: one of the two,
or both (each swap uses one of them at random). With the way None there are no number swaps at all: the
target is scrambled with rows, columns, bands, stacks, rotations and flips only, and the numbers cannot be moved
in this game.
When the board equals the target, the game shows how many moves you needed.
Rubik's Sudoku is open source: the
sources are on GitHub.
Made by chrisbaumann.ch.