aryan-cs / sudoku

sequential & entropy based recursive backtracking algorithms for sudoku visualized with p5.js
https://aryan-cs.github.io/sudoku/
0 stars 0 forks source link

random solvable board creation resulting in unsolvable boards #1

Open aryan-cs opened 2 years ago

aryan-cs commented 2 years ago

the board.js file's object contains a method, getBoard(), which has code (currently commented out in favor of an undesirable hardcoded workaround) that should create a randomly generated sudoku board for the algorithms to solve, but the boards are often impossible to solve. this is because numbers are repeated within the same row/column/box, which goes against the rules of sudoku.

aryan-cs commented 1 year ago

havent checked this in a while, havent had problems so far tho