This plugin, as you might have guessed, adds a simple Sudoku minigame. You can use a specific puzzle, or use the included generator (courtesy of Mucahidyazar) to create them dynamically with a given difficulty.
To be honest, I'm not entirely sure what else to say about it. The digits can be selected from a keypad-style menu, or entered directly with the number keys. You can customise all the colours, set a background image, remove the default window, or change the size of the puzzle (in pixels, not cells). It should also adapt reasonably well to any changes you've made to windows in your game.
Whether the player solved the puzzle or gave up, as well as time spent in the puzzle, are written to a switch and variables of your choice.
There's a global object
MAC_SimpleSudoku with a bunch of functions to interface with the plugin programmatically if you want to. Notably, if you generate a puzzle that you enjoyed and would like to include that specific one in your game, you can type MAC_SimpleSudoku.getPuzzle() in console to get it as a string you can use for the plugin command.Big shoutout to Mucahidyazar for creating an MIT-licenced sudoku generator that's used in this plugin. It was surprisingly difficult to find one that actually created proper puzzles with unique solutions (and didn't just claim to), and my sanity might have taken some damage if I didn't find his work. Check it out here.
I didn't make a lot of changes to it - mostly getting rid of the node-related stuff to make it all work as a single JavaScript file, fixing one small bug and cleaning up the error messages. So if you'd like to make your own interface and just want the generator, you should be able to just grab it from this plugin and use it in yours without issues.
This plugin is available under the MIT Licence. You're free to use it in any games, commercial or not, or use the code in your own plugins. Credit is appreciated, but not required. If including credits, please remember to also credit Mucahidyazar for making the puzzle generator!
The interface for this plugin was surprisingly simple to make, and I could probably make one for other grid deduction puzzles without too much trouble now. Let me know if there are any specific ones you'd like to see!