3 ms·
The sudoku logic is very simple: https://github.com/alabhyajindal/sudoku/blob/main/index.html#L278 https://github.com/alabhyajindal/sudoku/blob/main/index.html.
by mbb70 3y ago
The sudoku logic is very simple: https://github.com/alabhyajindal/sudoku/blob/main/index.html#L278 https://github.com/alabhyajindal/sudoku/blob/main/index.html...
An empty grid is randomly filled in till it's solved, then a fixed number of cells are randomly cleared. Thus it's very possible to create an ambiguous solution.
However I don't grade it against every sudoku app in history, I grade it against other handcrafted index.html sites. And on that metric I think it's pretty good.
Lots of room to extend functionality of course, but it seems like a project whose value was in the making, not the having.
- imglorp 3y agoMy first game had an ambiguous solution not resolvable with logic. It was one of these deals: a.b ... b.a On the plus side, I like that it highlights the current number. For a mature exploration of this idea with many more features, look at https://www.sudokuslam.com/ https://www.sudokuslam.com/ for ideas. I've been playing that one for many years.
- alabhyajindal 3y agoI will improve the puzzle generation function so there's only one possible answer. Thanks for sharing Sudoku Slam, looks great! Especially the "auto-fill in obvious numbers".
- imglorp 3y agoYes autofill, which feels like cheating, along with automatically filling in marks. What this does, though, is let you focus on only the hard decisions and the auto does everything else for you.
- alabhyajindal 3y agoThank you! Yes, I made the game because I enjoy playing Sudoku and wanted to implement one myself, just for fun!