04-18-2024, 03:20 PM
It's been many years since I last posted any QB64 demos. I primarily use C++ as my go-to programming language nowadays, but I chose QB64 once more to create, what I thought would be a quick demo of a Sudoku game.
@Norby Droid was working on one in FreeBasic which inspired me to create one too. I needed a little mental break from my websites and other big projects, so I thought this game would be the perfect thing to do just that.
@Norby Droid added over 6,000 puzzles to his Sudoku game that are easy, medium, hard, and evil. He has shared those puzzles with me so I can add them to my project.
I'm currently working on the menu system. When that is done, I can work on the AI, which the user can step through.
Here's a current screenshot of the project
You can switch between AI and Manual modes with the <F4> key.
The font used is the same as the one on my three websites, the "SAIRA" font from Google Fonts.
The puzzle is dynamically sized according to the font size of the subcells. You can adjust the border size, the box separator size, and the cell separator size by changing the global variable values.
The text box on the right-hand side is the information box that provides info as needed.
The 50 bubbles in the background are animated and bounce around. The bubble is just a single PNG file I created from an Adobe Illustrator file I found online. The bubbles are randomly scaled by using the _MAPTRIANGLE command.
As you can see in the screenshot above, when the cell cursor is over a playable cell, there is a green outline around it. When the cell is unplayable, there is a yellow outline around it, as seen in the following screenshot.
Other features I need to add to the game after the menu system and AI are the puzzle selection menu and the save/load game.
When selecting the puzzle you want to play, the icons will show how much they have been played, as seen in the following screenshot.
The puzzle icons are scaled versions of the playable puzzles.
The grey subcells are unplayed, the yellow subcells are the possible playable values, and the red subcells are non-playable.
I will share the source code for the Sudoku game on my GitHub account when I get it done.
@Norby Droid was working on one in FreeBasic which inspired me to create one too. I needed a little mental break from my websites and other big projects, so I thought this game would be the perfect thing to do just that.
@Norby Droid added over 6,000 puzzles to his Sudoku game that are easy, medium, hard, and evil. He has shared those puzzles with me so I can add them to my project.
I'm currently working on the menu system. When that is done, I can work on the AI, which the user can step through.
Here's a current screenshot of the project
You can switch between AI and Manual modes with the <F4> key.
The font used is the same as the one on my three websites, the "SAIRA" font from Google Fonts.
The puzzle is dynamically sized according to the font size of the subcells. You can adjust the border size, the box separator size, and the cell separator size by changing the global variable values.
The text box on the right-hand side is the information box that provides info as needed.
The 50 bubbles in the background are animated and bounce around. The bubble is just a single PNG file I created from an Adobe Illustrator file I found online. The bubbles are randomly scaled by using the _MAPTRIANGLE command.
As you can see in the screenshot above, when the cell cursor is over a playable cell, there is a green outline around it. When the cell is unplayable, there is a yellow outline around it, as seen in the following screenshot.
Other features I need to add to the game after the menu system and AI are the puzzle selection menu and the save/load game.
When selecting the puzzle you want to play, the icons will show how much they have been played, as seen in the following screenshot.
The puzzle icons are scaled versions of the playable puzzles.
The grey subcells are unplayed, the yellow subcells are the possible playable values, and the red subcells are non-playable.
I will share the source code for the Sudoku game on my GitHub account when I get it done.