Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sudoku - Proof of Concept
#1
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.
Reply


Messages In This Thread
Sudoku - Proof of Concept - by The Joyful Programmer - 04-18-2024, 03:20 PM
RE: Sudoku - Proof of Concept - by Jack - 04-18-2024, 05:52 PM
RE: Sudoku - Proof of Concept - by bplus - 04-18-2024, 06:10 PM
RE: Sudoku - Proof of Concept - by SMcNeill - 04-18-2024, 11:31 PM
RE: Sudoku - Proof of Concept - by Jack - 04-19-2024, 10:16 AM
RE: Sudoku - Proof of Concept - by mdijkens - 04-19-2024, 04:58 PM
RE: Sudoku - Proof of Concept - by bplus - 04-19-2024, 05:11 PM
RE: Sudoku - Proof of Concept - by bplus - 04-19-2024, 05:38 PM
RE: Sudoku - Proof of Concept - by bplus - 04-19-2024, 06:01 PM
RE: Sudoku - Proof of Concept - by bplus - 04-19-2024, 06:32 PM
RE: Sudoku - Proof of Concept - by bplus - 04-19-2024, 06:38 PM
RE: Sudoku - Proof of Concept - by bplus - 04-29-2024, 12:45 PM



Users browsing this thread: 2 Guest(s)