QB64 Phoenix Edition
Sudoki solver - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Programs (https://staging.qb64phoenix.com/forumdisplay.php?fid=7)
+---- Thread: Sudoki solver (/showthread.php?tid=1529)



Sudoki solver - BDS107 - 03-06-2023

Here is a small program for solving a Sudoku.
Start the program, press "C" to clear the field. Then fill in the sudoku that you can find in newspapers or other media and finally press "S" to solve the sudoku.
You cannot solve it yourself, the computer does all the work for you.
Comments are welcome  Big Grin


.bas   sudoku.bas (Size: 10.37 KB / Downloads: 70)


RE: Sudoki solver - bplus - 03-06-2023

Yeah Sudoku! 

I've been enjoying mine for years!
https://staging.qb64phoenix.com/showthread.php?tid=114&pid=430#pid430

Finally got good enough to check code that the puzzles created have unique solutions.
I also have a Christmas version with images and another with city landmarks around the world!


RE: Sudoki solver - bplus - 03-06-2023

I ran a test puzzle made by my Sudoku app with your Solver and was happy their solutions matched!

Test Puzzle:
   

Solution Match!
   

@BDS107 your puzzle looks nice and is easy to edit even without a mouse input.

I recommend putting a _Limit in main Keypress loop to stop heating up the CPU and activating the fan.