Lucas' Sudoku Solver

Iterations
0
Elapsed time
0 ms
Finished
false

This is a simple sudoku solver based on a backtracking algorithm. The solver will find a solution to any valid sudoku board. It's fast and efficient, often solving the board within a few milliseconds.

How to use

Click on a cell to select it. Use the number buttons on the keypad to set the value of the selected cell. Continue filling in the numbers of the sudoku board you wish to solve.

When you are done, click Solve.

Color guides

1 - A white number indicates that the solver have inputted the number.

2 - A lime number indicates that you have inputted the number.

3 - Gray numbers indicates possible solutions for that cell.

4 - A cyan number indicates that there is only one possible solution for that cell.

x - A dark red cell indicates that there is no possible solution for that cell, you must have inputted something wrong, or the sudoku is not solvable.

Keybinds

W or - Move up

S or - Move down

A or - Move left

D or - Move right

1-9 - Set the value of the selected cell

0 or Backspace - Clear the value of the selected cell

Escape - Deselect the selected cell

Import/Export

You can import/export a sudoku board by pasting the string representation of the board into the textarea. The string representation is a concatenation of the rows of the board, where 0 represents an empty cell. It's read from left to right, top to bottom.

Example boards:

  • Empty: 000000000000000000000000000000000000000000000000000000000000000000000000000000000
  • Medium: 530070000600195000098000060800060003400803001700020006060000280000419005000080079
  • Hard: 017020003030010780000600000903000500008300006000086049051430090270000000000200014
  • Extreme: 800000000003600000070090200050007000000045700000100030001000068008500010090000400
  • Anti-Backtracking: 000000000000003085001020000000507000004000100090000000500000073002010000000040009

Got feedback?

Feel free to reach out to me. Contact information can be found here.

Lucas Sedberg

Copyright © 2024 Lucas Sedberg

This website is currently under construction. Expect bugs, typos and inconsistencies.
Please check back later for updates and new content!