So I randomly remembered about this yesterday. When I first attempted this project, I could not figure out issues with my C sudoku generator. Armed with knowledge of C++ this time, I wrote a better(at least less convoluted) sudoku generator that appears to work correctly. In terms of speed, it is not very good - extremely easy through medium difficulty puzzles are generated rather fast, but hard takes a long time and the insane pack(added an extra difficulty cause why not?) took me about 20 minutes to generate. Right now difficulty is based purely on how many squares are not empty(extremely easy: 50-60, easy: 36-49, medium: 32-35, hard: 28-31, insane: 22-27); I took these from a source and might modify them, as the medium and hard ranges seem a little small. Here is a github link(btw was surprised to find I already made this repository) to the puzzle generator: https://github.com/awesommee333/Sudoku-Puzzle-Generation/blob/master/SudokuGenerator.cpp
Therefore, since the TI NSpire is very slow, at least porting the generator I have now would not be great. I may get away with generating easy, medium, or perhaps even a single hard level(hard took a couple seconds on my computer to generate 81 levels, so *maybe* it could be used to generate 1 level in a few seconds on the TI NSpire).
Since this got me interested, I guess I will rewrite sudoku for the NSpire(gonna have to remember lua). I am not really an avid sudoku player though (I just wrote this for fun), so I will see how long this will take. For now, I guess if you want a mediocre sudoku player(which doesn't support basic features of sudoku such as different colors for starting numbers and inputted numbers), here is a link to a tns(how do you add attachments btw or is that no longer supported?): http://www.filedropper.com/sudoku_1
Therefore, since the TI NSpire is very slow, at least porting the generator I have now would not be great. I may get away with generating easy, medium, or perhaps even a single hard level(hard took a couple seconds on my computer to generate 81 levels, so *maybe* it could be used to generate 1 level in a few seconds on the TI NSpire).
Since this got me interested, I guess I will rewrite sudoku for the NSpire(gonna have to remember lua). I am not really an avid sudoku player though (I just wrote this for fun), so I will see how long this will take. For now, I guess if you want a mediocre sudoku player(which doesn't support basic features of sudoku such as different colors for starting numbers and inputted numbers), here is a link to a tns(how do you add attachments btw or is that no longer supported?): http://www.filedropper.com/sudoku_1