Sudoku Million Games DataSet - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Utilities (https://qb64phoenix.com/forum/forumdisplay.php?fid=8) +---- Thread: Sudoku Million Games DataSet (/showthread.php?tid=2822) |
Sudoku Million Games DataSet - SMcNeill - 06-24-2024 For folks who may be interested in trying their hands at writing a Sudoku puzzle, but don't have any clue about how to make a puzzle generator, I give you -- ONE MILLION GAMES OF SUDOKU!! Code: (Select All)
Above is the simplest way I could come up with to get that whole dataset and load it into an array for use. If you don't want to use the memory to store the whole array, or you're wanting to bypass the disk read time to read it all, feel free to extract that file and _INFLATE it. The data is stored in very simple to read and use strings. 81 characters for the puzzle. 81 characters for the answer. 1 character for the End of Line (chr$(10)) character. You can read those files AS RANDOM and read them one at a time. You can use SEEK and read them in LINE INPUT. Once you have your games however you want them, all that's left at that point is just to make your interface with the grids, movement, and number input. The puzzles are all here, along with their answers. What you decide to do with them is up to you. Print them out, so you can take them on the bus, to the doctors, or wherever you want, to play with them. Make your own game with them. I don't care! I just thought I'd share, in case anyone might be interested in a million games of Sudoku! RE: Sudoku Million Games DataSet - Dav - 06-25-2024 Thanks for sharing this. I posted a sudoku game here a couple weeks ago but used a randomizer to make puzzles. Problem is those puzzles can have different solutions and some guess work is needed. I may resort to using some of these puzzles instead for the next version. - Dav RE: Sudoku Million Games DataSet - Dav - 06-28-2024 Hey Steve, are these 1,000,000 puzzles broken up into the levels by any chance? Like puzzle 1 to 250k is easy, 250k to 500k is medium, etc? - Dav RE: Sudoku Million Games DataSet - SMcNeill - 06-28-2024 Afraid these aren't. They're just "puzzles" without being "rated". |