Solve Sudoku

FREEMIUM
By Sean Osier | Updated 16 days ago | Gaming
Popularity

8 / 10

Latency

2,105ms

Service Level

100%

Health Check

N/A

README

Solve Sudoku API

Solves standard 9 x 9 Sudoku puzzles

Input

You provide a JSON body with a puzzle parameter.

For example:

{
  "puzzle": "2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3"
}

puzzle should be a string of length 81 (9 x 9) with the first 9 characters corresponding to the first row of 9 squares, the next 9 to second row, and so on. Numbers 1-9 will be considered filled squares. All other characters are treated as blank squares.

Output

The API will return a JSON object of the structure:

{
    "solvable": True
    "solution": "284375196739816254651942378476128539312594687598637412143769825965283741827451963" 
}

solvable will beTrue if the puzzle you provided is solvable, and False if it is not.

solution will be the 81 character string solution to the puzzle you provided if solvable. If the puzzle is not solvable, solution will be an empty string "".

Solve Sudoku API

Solves standard 9 x 9 Sudoku puzzles

Input

You provide a JSON body with a puzzle parameter.

For example:

{
  "puzzle": "2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3"
}

puzzle should be a string of length 81 (9 x 9) with the first 9 characters corresponding to the first row of 9 squares, the next 9 to the second row, and so on. Numbers 1-9 will be considered filled squares. All other characters are treated as blank squares.

Output

The API will return a JSON object of the structure:

{
    "solvable": True
    "solution": "284375196739816254651942378476128539312594687598637412143769825965283741827451963" 
}

solvable will be True if the puzzle you provided is solvable, and False if it is not.

solution will be the 81 character string solution to the puzzle you provided if solvable. If the puzzle is not solvable, solution will be an empty string "".

Followers: 30
API Creator:
Rapid account: Sean Osier
Sean Osier
sosier
Log In to Rate API
Rating: 2.3 - Votes: 3