Just wanted to see if I could figure out how to generate a working Sudoku board on the fly quickly. My target was under 1 second. After the board is built where all the numbers are random, then the code removes numbers also randomly in order to play the game. That randomness turned out to be a nice little challenge :-)
It seems to work okay for the most part. Myself and other family members play it often now.. which is really cool. There are no scores. If you guess wrong there is no penalty. Just low key, low stress game.
https://kjabr.github.io/Sudoku/
Just wanted to see if I could figure out how to generate a working Sudoku board on the fly quickly. My target was under 1 second. After the board is built where all the numbers are random, then the code removes numbers also randomly in order to play the game. That randomness turned out to be a nice little challenge :-)
It seems to work okay for the most part. Myself and other family members play it often now.. which is really cool. There are no scores. If you guess wrong there is no penalty. Just low key, low stress game.