-
Sudoku solver
Hi all.
I'm new here. but i was wondering if anyone could make a sudoku solver where you input an 81 number int and it gives out another 81 int that is correct for the sudoku.
The numbers that you put in is 0 if there isn't a number already in the box.
Thank you :)
also i need to be ble to add it into a script. Thanks :)
-
Re: Sudoku solver
So basicaly a solver that doesn't put it into a grid form. And doesn't use any sort of grid
-
Re: Sudoku solver
Scroll down to the similar threads box at the bottom of the page (or search the forums for Sudoku), lots of sudoku threads that may help. By 'not using any sort of grid', I assume you want the puzzle to be represented as a single dimension array? To do that you just need to map the locations in the grid to the locations in the 1D array - you can do this using appropriate for loops or creating look up tables.