Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Sudoku

poccil

Sponsor

This is a Sudoku program which I wrote in C#.  It requires the .NET Framework version 2.0 or later.  What's unique about this program is that it can generate proper puzzles according to their difficulty, rather than using a predetermined set of puzzles.  The program and its source code can be used for any purpose.

Download

http://upokecenter.com/projects/sudoku.zip (June 28, 2008)
 

OS

Sponsor

That's pretty cool. I like how it doesn't let you set numbers that aren't allowed. Nice touch. One thing I don't like is how you can use this to your advantage without any penalties. It may take awhile, but you can simply keep pressing buttons until it works.

Anyways, nice work. I'll look at the code later. Peace!
 
So, you wrote the interface for the program and converted the java Sudoku generator/solver which was converted by Rolf Sandberg from a C implementation and other logic provided by Günter Stertenbrink?
 

poccil

Sponsor

That is correct, I didn't write the generator and solver, but rather converted it.  It suited the needs for this program very reliably.  Merely the check for whether a number is legal within a square, as well as the rest of the user interface, are the parts of the program that I wrote.  I chose that particular generator and solver because it was in the public domain.
 
I looked up Günter Stertenbrink, he's a math nut, so I guess Sudoku was down his alley.

Nifty program, and good translation.  It probably helped that there's a lot of similar structural elements between C# and Java.  Were there any difficulties?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top