In an effort to demonstrate the C# language, I will program a Windows Form application for Sudoku. This is to teach the C# language
as well as provide a useful Sudoku program.
|
|
Before we get started, I think everyone should understand that if you gave ten programmers a simple problem to solve, you would get
ten different solutions. That is to say that everyone has their own way of doing things. Some more efficient and some less, but the point
is that there are many ways to get to the same conclusion. There is never just one way. So, as we go through the process of solving our
programming issues, you might look at the way I do things and say to yourself, "Wha???". That's okay. You do things your way. Feel free
to change the code to suit your needs. Feel free to use different words to describe objects and actions.
|
|
The first step in solving anything programmatically is to define what it is that you are trying to solve. In this case we are trying to
create a program that will display a valid Sudoku puzzle in order for a user to solve it. It would be useful to have the program create
new puzzles, save puzzles, copy & paste puzzles, aid in more advanced techniques for solving, show/hide the possible numbers for a cell
(candidates), and be asthetically pleasing to play.
|
|
Below is an image of the current screen for a program I am calling Sudoku Sharp.
|
|
|