MZ Infinite Sudoku (Working Title)

I decided I would try to make a Games In Development thread to see if I can take my first real game across the finish line. All concepts, layouts, graphics, features, etc. are works in progress and subject to change. I plan to release this game for FREE on itch.io and maybe Steam (depending on how ugly of a baby it is).

Spoiler: SYNOPSIS
As the working title suggests, this is a Sudoku inspired game. You might even say it is Sudoku lite or like, given some of the features. At this moment, subject to feedback, suggestions, and sudden bouts of inspiration, here are the main features that are planned:
  • All Randomly Generated, Solvable Puzzles (Both Pregenerated & On Demand Generation)
  • Multiple Puzzle Types (Not just Numbers like traditional Sudoku - 12 so far)
  • Player chooses how many Hints will be initially revealed in the Puzzle (17, 21, 25, 29, 33, 36)
  • Player chooses either Manual or Auto Hints (Manual means the player chooses where the hints are revealed)
  • Player chooses either Timer or No Timer
  • Player chooses either Auto Generated Hints or Pregenerated Hints
  • Player can insert possible values in squares before making their official choice
  • Player can change values in the puzzle (but not hints once selected)
  • Quit Puzzle Option
  • Save on Demand
  • Music Selection
  • Click on Choice and then square to assign a value in the puzzle (No number input)
  • In game Achievements with Player Hall of Fame area
  • Two different checks for solved puzzles (Actual solution for Pregenerated puzzles & Valid solution)
  • Player can elect more Hints if they started with fewer than 36.
Again, all of these features are subject to my ability to incorporate them. Because the puzzles are generated randomly, and the revealed hints can be assigned randomly or by the player, and the number of hints can be selected, and there are more puzzle types than just traditional numbers, there should be excellent replay value.

The Achievements will be designed to encourage the player to explore and try all the different options available.

If the player likes traditional Sudoku, they should be able to make choices that give them an almost unlimited puzzle solving experience. And for those who want a real challenge, they can choose something other than numbers, with less hints that are randomly placed.

Spoiler: SCREENSHOTS
Title Screen.pngPuzzle Choice.pngHint Choice.pngHint Type.pngTimer.pngGenerating Puzzle Message.pngCompleted Puzzle.png

Tags and Genre for this game would be Puzzle and Sudoku Puzzle.

I welcome any and all feedback and suggestions.

Thanks!

EDIT: UPDATED some information and concepts.
Congrats on getting your first game thread going.
That title screen gave me flashbacks to 4D sudoku 😅

Good luck on your project!
I had never heard of 4D Sudoku. Basically a Rubik's Cube for Sudoku. Very interesting.
Oooh look who has an official game thread!! Congrats putting all this together!
For all the things I've seen people do with RPG Maker, somehow this has been the most surprising, especially in that it's not something I think has been done before? Could be wrong on that. Either way, looking forward to seeing more progress on this. Family and I used to get each other tons of Sudoku books every Xmas, cheap and easy gifts.
Added two new Puzzle Themes.

Spoiler: New Themes
Christmas Puzzle.pngHalloween Puzzle.png

Had a minor setback. I was trying to use a Parallel Event to generate a Valid puzzle while an Autorun Event was running an Intro and asking the player to select certain options. I thought that could hide the time it takes to generate the puzzle.

Unfortunately, running the Autorun Event and the Parallel Event at the same time was causing random problems with the puzzle generation. The Parallel Event seemed to run fine alone. It was only when I tried to run them together that there were problems.

I will keep trying to experiment to figure it out or figure out an alternative. It will require some lengthy testing.

In the meantime, I still need to test different ways to generate puzzles.

Also, if I can't figure out how to implement a better way to generate a random puzzle and if I can't get the generation Event to run in the background correctly, then I thought of an alternative solution.

If I want to keep the Random Generation concept that I was able to Event in MZ, I can generate as many puzzles as I want (that have still been randomly generated) and then include them in the game as "seed" games. Technically, they would still be randomly generated, just not while the game is running.

I can also allow the player to still generate a random puzzle in the game, as long as they understand that it could take a few minutes to complete the generation. It could take seconds or minutes.

We will see.
Made pretty good progress so far.

I have 12 working puzzle themes now, I have the Event part that allows the player to select a pre-generated random puzzle (just need to generate and add a bunch more) or a new random puzzle, my random puzzle generator is working without problems (other than being slow sometimes), and I have the Event completed that allows the player to select their own hints based on the total number of hints they selected.

Now comes the part that is probably the hardest. Experimenting and trying to find the best way to auto generate hints. Which is kind of critical for a new, random generated puzzle. With the pre-generated, random puzzles, I can tweak the puzzle hints in advance if I need to.

I also decided to have the Solve Puzzle option do two checks. One will check to see if the puzzle is solved with the exact same values in the exact same places as the puzzle. The other will just check to see if whatever values the player entered results in a valid solution, even if it doesn't match the original puzzle.

This is actually important since I am allowing the player to choose where they place their hints and to select a total number of hints (14) that is lower than what is required (17) for a Sudoku puzzle to have only one valid solution. So getting a solution that "works" even if it isn't a match to the original puzzle is still an "ok" solution.

I have a bunch of ideas to try, but my main concern (probably obvious) is whether or not the methods I use to auto generate the hints will result in visible hints that will allow the player to have clear and obvious selections at the start of the game without having to guess.

I haven't done a TON of Sudoku puzzles and I have mostly stuck with easy or medium puzzles, but I think every one I have done is set up so you can narrow down the value of some squares without having to guess or do the this square could have more than one value thing.

I have to try to see if I can figure out a way to get auto generated hints for a random puzzle that will make sure to give the player a few squares at the start that can only have one value based on the visible puzzle hints based on usual Sudoku puzzle solving strategies.

Now, maybe that won't be possible. But I am certainly going to give it a try by experimenting to see what happens.

I have been researching sample Sudoku puzzles to see if there are any observable patterns to the hint placements and values for the puzzle start.

I have thought about starting with random selection of 1 value for each Group (3x3 grid), then 1 value for each column or row and continuing in that pattern until the hints are exhausted.

I have thought about only selecting values from columns (or rows) to make sure that there are multiple values in most columns.

I have thought about options to make sure that the same value in the puzzle (like say 8) shows up enough times and in the right places to let the player narrow down where another 8 needs to go.

But I am one of those people who has a hard time conceptualizing how things will play out unless I see them in action. So there are limits to how much my theorizing will benefit me.

I guess time will tell. But at least I have ideas of how to start and see what happens when the Event runs.

If anyone has any ideas of how to approach this, besides this isn't possible so don't try, I would be happy to consider them. I am stubborn enough to try anyway, just to see the results. So productive suggestions to achieve that goal are very much appreciated.

But I am still learning a lot while doing this so it is definitely worth it for me.

I hope this update makes sense.

Happy game developing!
Watching this progress with a great deal of interest. 🙂
So as long as I am making good, consistent progress, I guess I will do Weekly updates until things start to slow down.

So without further ado, here is a list of things that have been updated:
  • For the 12 Puzzle Themes now, I removed the Food Icons, updated the Letter Icons, and added two new themes (Super Mario & Animals) with screen shots of the two new ones in the spoiler.
  • Changed the Font & Window Border Color (Screen shot in spoiler)
  • Changed the Hint Number choices (17, 21, 25, 29, 33, 36)
  • Added an explanation of Sudoku (can be skipped)
  • Added an explanation of the differences between the game and traditional Sudoku (can be skipped)
  • Added an erase mechanic so players can change a choice they made back to a blank square instead of just changing to a new value
  • Evented 10 methods of generating Auto Hints (continuing to test)
  • Updated the Intro so it shows an example of a puzzle with the Puzzle Theme selected
  • Added 6 Randomly Generated Puzzles so the game will have Pregenerated puzzles
  • Added numerous Comments for future reference
My immediate To Do list that I am already working on:
  • Complete the Solve puzzle Common Event that will check to see if the player solution exactly matches the official puzzle solution as well as if the player solution equals a valid puzzle. This is important because the player might have a solution that is a valid puzzle, but it might vary slightly from the official solution.
  • Eventing the ability to continue to play after completing a puzzle
  • Continuing to test methods to autogenerate hints
  • Adding a quick tutorial for how the puzzle mechanics function (can be skipped)
  • Add mechanic to quit the current puzzle
  • Add mechanic to insert "notes" in squares that could have multiple values (this is a longer term challenge)
Here are the new screenshots as examples:

Spoiler: New Screenshots
Animals Puzzle.pngSuper Mario Puzzle.pngUpdated Font & Window Border.pngLetters Puzzle Updated.png

Once I get the majority of the To Do list implemented, I will be asking if anyone is interested in participating in a pre-alpha testing to help me gather data about the different Auto Hint generation methods. I forgot how mentally exhausting doing a bunch of medium level Sudoku puzzles can be.

I am also seriously considering adding a couple special Puzzle Themes. I was thinking it might be cool to have a couple of Themes dedicated to those who have helped me so much in my progress in learning MZ and game developing and the people who are willing to help me test the game. But it will depend on if the Avatars will be sufficiently visible for a puzzle. I did test it with my Avatar and the Snorlax picture that Avery drew for me and they seem to be large enough. So I would like to give it a try to see what it looks like.

As always, if anyone has any thoughts, comments, suggestions, or requests that you would like to offer, please feel free.

I am learning so much from working on this so it is pretty exciting.

Thanks!
Weekly Progress Update

I spent most of the week puzzling (how punny) over how to Event a new method for Auto Generating Hints that will always result in an Easy puzzle at the maximum hint number of 37. I was researching Sudoku algorithms and while the math is WAY beyond this immortal Zombie's comprehension, I was able to understand the logic of reverse tracking a completed puzzle for determining where to place hints.

Which is what I have been logically trying to organize into an Event. Essentially, you take a completed Sudoku puzzle and remove one square at a time. Each time you remove a square value, you check to see how many possible values could go in that square. If it is only 1, then you still have an Easy puzzle. If it is more than 1, you put the value back and try a different square. You keep doing that until you get to the number of hints remaining you want for the puzzle and you should be left with a puzzle with hints displayed where there is always at least 1 square of the puzzle that has only 1 possible value.

I spent most of my development time this week updating all 81 of the Common Events that are called from the Puzzle squares and the Parallel Event that actually allows the player to complete the puzzle. While it was incredibly tedious work of copying/pasting and changing a bunch of values for each Event for Variables, Switches, Picture Ids, etc., at least all the puzzle squares now have all functionality (designed so far) and seem to work correctly.

So even though I only knocked 1 item off my previous immediate To Do list, I still made good developing progress.

I also inadvertently discovered a serious flaw in the logical design of the majority of the 10 methods of Auto Generating Hints that I Evented. This made Zombie's brain hurt. Essentially, I forgot a very important part that made it so the same square could be picked more than once under certain circumstances for a possible hint. This resulted in random instances of LESS hints than desired. The solution required some experimental testing of the solution logic and then lots of copying/pasting and changing values. But I now have 7 of the 10 correctly updated and functioning now.

I also want to officially extend the offer, like I did in a status post this week, that if anyone has 9 Themed 48x48 pictures that they would like to see as a Puzzle Theme option, I am happy to consider requests since adding Themes is incredibly easy. @Ziorke posted an example that looks really cool and they also gave me an idea.

I decided to add two more features.
  • Try to either add numbers to the Themed images so there is a visual reference for the Note taking mechanic OR add the number references where the player selects the value they want to enter for the square.
  • Add the option (with detailed instructions) to allow the player to use their own Theme. I will program the Events to accept a generic image name "Custom1-", "Custom2-", and "Custom3-". That way, all the player has to do is place 9 images (48x48) in the appropriate game folder with the exact appropriate file names (like Custom1-1, Custom1-2, Custom1-3, etc.) and they can, in theory, try any images they want in the game for a puzzle Theme. I thought that might be really cool and interesting.
Other than that I also:
  • Added a couple more Pregenerated puzzles (I am slowly adding up to 30 and will probably increase that as I go)
  • Added the ability for the player to either choose a specific pregenerated puzzle or do a randomly selected pregenerated puzzle (which means I also now need to add a puzzle identifier to show which pregenerated puzzle is being played)
So this week, my top priorities from the To Do list are:
  • Finish fixing the existing Auto Generating Hint methods & Test
  • Event the newest method & Test
  • Finish the Event for solving the puzzle
And finally, here is a screenshot of a puzzle utilizing the add notes mechanic. As you can see, the player can leave a space in any of the 4 places if they don't have 4 values they want to add.

Spoiler: Player Added Notes
Add Notes All.png

I hope everyone has a productive week game developing and remember to have fun!
Weekly Progress Update

I spent most of the week working on my 12th (AND APPARENTLY FINAL) method of Autogenerating Hints. The Common Event can consistently and rapidly generate hints for a 36 or 37 hint EASY puzzle. From looking at a sampling of Easy puzzles, it appears that 36 or 37 hints is standard. So the method does exactly what it needs to do.

The full list for this week:
  • Auto Hint Generation method that finally works!
  • Added Puzzle Identifier so the player knows what Pregenerated Puzzle they are doing
  • Added a special Zioke Theme for @Ziorke
  • Added Info & Option for Custom Themes
  • Added 4 more Pregenerated Puzzles
  • Started experimenting with adding backgrounds
  • Figure out how to make part of an image transparent in GIMP (not a big deal for most, but anything I learn new in GIMP is a big deal to me)
So having backgrounds that the player can select or that go with different Themes or that are random is something new that I should have thought of before, but I didn't until Ziorke made a great suggestion!

Up to this point, I have been focusing on mechanics and functionality just to get the game working. And the current UI may just be a placeholder.

But since my mechanics and functionality list is getting shorter and I don't think I have any major pieces left for those, I can now start focusing on the overall appearance, the UI, and music/sound.

Here are a couple screenshots of the initial Ziorke Theme implementation.

If anyone has any questions, suggestions, or request, please let me know.

Spoiler: ZIORKE THEME SAMPLES
Ziorke Start.pngZiorke Finished.png

I hope everyone had a very enjoyable and productive week!
Weekly Progress Update

Got sort of distracted by the concept of adding Background Themes to the puzzle. So I decided to experiment with a new UI concept for that mechanic. I originally just made the game using Show Text and Show Choices options as placeholders. So I am working on updating the game with new UI.

Here are some screenshots of the new Background choices and UI.

Spoiler: Background Choices & UI
Background Main Select.pngBackground RPG Maker Select.pngBackground MZ.pngBackground MV.pngBackground VXAce.png

I also:
  • Updated the Auto Hint Generation Mechanic
  • Changed the border on the transparent squares
  • Almost finished the Solve Puzzle mechanic
  • Added on-screen placeholders for RESET and QUIT puzzle
  • Did more testing
The game is almost 100% functional now. Only a few more things before it can be fully play tested. Most of my to-do list is polish or extra stuff.

Here is a screenshot of how a puzzle might start with a background and theme.

Spoiler: Updated Puzzle Appearance
Updated Puzzle Appearance.png

I hope everyone had a very productive and happy week!
Weekly Progress Update
  • Increased the Maximum Number of Show Pictures to 400
  • Updated some Show Picture ID scripts to the higher values and fixed a few conflicts
  • Added the option for a Black Background
  • Added Background options for 5 categories: Castles, Halloween, Lakes, Lightning, & Steampunk
  • Turned off access to the Menu
  • Added 4 Navigation Icons for Exit, Save, Change Music, & Change Puzzle or Background Theme
  • Added Exit & Save functionality to those Navigation Icons
  • Added functionality to change the puzzle Theme while playing in case the player decides the Theme clashes with the background
  • Added a few more Pregrenerated puzzles
  • Continued to play test and update the UI from placeholder Show Text & Show Choices
And here are some screenshots of the background choices in the 5 completed categories & an updated screenshot of what the puzzle UI looks like while playing with a background.

Spoiler: Backgrounds & Updated Puzzle UI
Puzzle With Navigation Icons.pngCastles BG Options.pngHalloween BG Options.pngLakes BG Options.pngLightning BG Options.pngSteampunk BG Options.png

I hope everyone had a productive week and happy game developing!
Weekly Progress Update

Spent most of this week implementing background categories and updating some events to make them more efficient. I also learned that I have been doing something completely unnecessary with my use of Parallel Events for when I use the ButtonPicture plugin so that is resulting in some redesign efforts.

Here is a list for this week:
  • Implemented 10 background categories: Autumn, Beaches, Dragons, Fairytale, Flowers, Horror, Romance, Victorian, Villages, & Winter (only 3 more to go)
  • Add a few more Pregenerated puzzles
  • Updated the Pregenerated Puzzles Common Event to eliminate a Conditional Branch for each Puzzle and 81 Variables being set with individual commands with an Array for each puzzle and a simple script to replace all the Conditional Branches. Eliminated over 1,600 command lines for just 20 puzzles.
  • Began updating Events that no longer need to be Parallel Events (URGH...ARGH)
  • Continued to test, polish, and improve
  • Experimented with making some of the puzzle themes more transparent (like Numbers & Letters) so you can see more of the background
Here is an example of the more transparent Numbers and Letters. Still need to tweak the colors.

Spoiler: See More Background
Transparency Test.png

And here are some screenshots of the 10 new backgrounds.

Spoiler: New Backgrounds
Autumn BG Options.pngBeaches BG Options.pngDragons BG Options.pngFlowers BG Options.pngHorror BG Options.pngRomance BG Options.pngVictorian BG Options.pngVillages BG Options.pngWinter BG Options.png


I hope everyone had a productive week of Game Deving!
Weekly Progress Update.

The week started off pretty slow. My To Do list is getting shorter and everything seems to be taking longer to implement and make sure everything else continues to work. Here is the list from this week:
  • Added the last 3 Background categories: Animals, Children, & Christmas
  • Added the option for a random Background from all categories
  • Added the option for a random Background from chosen category
  • Added the functionality to change the Background at anytime while playing
  • Added Back Button navigation functionality on the Background selection menu screens
  • Added the Puzzle Reset Button functionality
  • Converted all the Puzzle Theme Example Screenshots with a Black Background to an example of the Puzzle Theme where any Background that was selected will show to the player can see, in advance, how the chosen Theme will match with the Background
  • Tested the Custom Background Music (BGM) concept with the song Indestructible by Disturbed
So, this week I really need to concentrate on music and sound, which is an area that is VERY weak for me. I need to figure out what options I want to provide to the player for selecting the Background Music.

I also need to design how I want my menu screens to look so I can convert all the Show Text and Show Choices Events to a menu/button driven player navigation experience.

Eventually, the game will also have Custom options for Theme (what goes in the puzzle squares), Background, and Background Music. The player will just have to follow the directions for saving the images/audio files in the correct format with the exact example Custom names. So the player will be able to truly customize their experience.

Here are the screen shots of the 3 final Background category options.

Spoiler: Final Background Choices
Animals BG Options.pngChildren BG Options.pngChristmas BG Options.png

I hope everyone had a productive week and happy game developing!
Weekly Progress Update.

I know it probably sounds funny, but I still don't feel...qualified...to call this a Dev Log or to refer to myself as a developer. More like a hobbiest dabbler. Anywho...

I didn't accomplish much this week, but I suppose that is bound to happen once in a while. I ran into a few problems that slowed things down.

First was an unexpected behavior with the ButtonPicture plugin that I heavily rely on for this game. Thankfully, my post on this forum led to a better understanding of what was happening and a very simple solution was offered that I tested successfully.

Second was something that I never did resolve. I had 1 background image, out of 401 that the game wouldn't recognize. I scrutinized it carefully and tried everything I could think of. It didn't seem any different from the other 400 images. And even though the image was the right type and in the right folder, the game just wouldn't show the image in the option for Show Picture. It was the strangest thing. So after hours of fighting with it, I just gave up and selected another image.

So, what did I actually achieve this week? Here it is:
  • Started implementing the fix to solve the problem with the way I was using the ButtonPicture plugin.
  • Continued to test different colors to make the semi-transparent Numbers & Letters Puzzle Themes easier to see.
  • Added the option to also select solid Numbers & Letters.
  • Added the solid Numbers & Letters examples for the player to preview what they will look like.
  • Added some new Pregenerated puzzles.
  • Added Custom Backgrounds & Custom Theme placeholders.
  • Implemented the functionality for the player to choose a Custom Background or Custom Theme.
I also made a DEMO video about a week ago that I posted on my status feed. I will repost it here as well.




As always, if you have any questions or suggestions, feel free to leave a message or send me a PM.

I hope everyone had a productive week and a Happy Easter!

Happy gaming and Happy game developing!
Weekly Progress (?) Update.

What is the opposite of progress? Can you regress in game development? Asking for an undead friend.

Anyway, a major UI change is looming and I am suffering from indecision paralysis so things are slowing down. But here is what I managed to accomplish this week:
  • Added some more Pregenerated puzzles.
  • Did some bug squashing during continued testing.
  • Continued to experiment with different colors for my semi-transparent Numbers and Letters themes to try to get colors that show up better on more background while still letting the player see more of the puzzle through the Numbers and Letters. I'm still not 100% satisfied.
  • Added 10 new themes. 5 for Numbers and 5 for Letters. (Fire, Gold, Rainbow Stars, Red, & Silver) This was to make sure the player would have a Numbers and Letters theme that would show up on any background.
  • Started Eventing an Intro before the Main Menu choices screen.
  • Mostly settled on a new UI design to replace all the Show Text & Show Choices interface with Menu style button clicking.
  • Tested a script that @caethyril had shared to show a picture when hovering over another picture. I am definitely using that.
  • There might be more, but I can't remember right now.
There are now 407 Backgrounds that the player can use, not counting the 3 placeholder backgrounds that will allow the player to add 20 backgrounds of their own.

There are now 23 Themes and 39 Pregenerated puzzles.

Here are some screenshots of the new themes.

Spoiler: New Themes
Themes Color Letters.pngThemes Color Numbers.pngThemes Fire Letters.pngThemes Fire Numbers.pngThemes Gold Letters.pngThemes Gold Numbers.pngThemes Rainbow Letters.pngThemes Rainbow Numbers.pngThemes Red Letters.pngThemes Red Numbers.pngThemes Silver Letters.pngThemes Silver Numbers.png

As always, if anyone has any comments, feedback, suggestions, etc., please feel free to leave a response here or send me a PM.

I hope everyone had a great week! Happy Gaming! Happy Game Developing! And watch out for the Eclipse if you are somewhere you can see it!
Hi @ZombieKidzRule

I'm still impressed by the evolution of this game and look forward to playing it soon.

However, as a player suffering from a kind of color blindness, my suggestion would be to find a solution to better distinguish the contents in the cells from the image in the background. As it happens, in the examples below, I've circled in blue the letters for which I had to stick my nose to the screen to see them properly. Perhaps it would be enough just to add a 20-40% transparent black or white background to each filled cell, or to add a few pixels of black ou white outline around the letters/numbers.

Spoiler
1712592507996.png


1712593464361.png

Anyway, you've done a great job so far. I can only encourage you to keep up the good work.
@r66r Thanks for that point and I definitely understand. I keep trying to tweak that option to see if I can maximize puzzle visibility while still making it a useable option for most backgrounds. I also struggle with seeing some of the numbers, which is why I keep experimenting based on my limited GIMP skills.

Fortunately, there will always be the option for numbers that are easy to see. The original theme for the numbers and letters were pastel color blocks, sort of like children’s toy blocks. Those will always be available along with the solid color numbers and letters in red, gold, etc.

This is why it was so important for me to add the functionality of allowing the player to change the chosen theme and background any time they want.

I appreciate the feedback and I will keep trying to find the optimal appearance for those semi-transparent numbers and letters.

I am also open to anyone with more skills doing some modifications as well. The theme images are all 48x48 pixels and my recent edits of the new numbers and letters use numbers/letters that are 40x40 inside a 48x48 image. The default size of the theme images must be 48x48.

Ziorke posted images for a theme and I am happy to consider other submissions, with full credit indicated.

Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/infinite-sudoku-working-title.164974/