C# Creating a Simple Sudoku Game in C#

  • Thread starter Thread starter rambo3131
  • Start date Start date
  • Tags Tags
    Game Sudoku
Click For Summary
The discussion centers on creating a Sudoku game in C# with an initial focus on a 3x3 grid before expanding to a full 9x9 grid. The user has implemented a form with nine combo boxes and a start button that, when clicked, fills two cells randomly with the numbers 1, 2, or 3. Players will then complete the grid and verify their answers using a check button. The user seeks guidance on using the backtracking algorithm for generating Sudoku puzzles and is open to suggestions for simpler methods. Key points include the structure of the game, the initial random cell filling, and the desire for advice on algorithm implementation.
rambo3131
Messages
18
Reaction score
0
Hi ,I want to generate a sudoku game in c sharp.First I will make 3*3 cells sudoku simple,then whole sudoku (9*9) . I ve added to form 9 commoboxes and a star button.
When ı click the start button , the programme will fill randomly two cells with 1, 2, or 3 .
Then player will fill other empty cells and check its correctness by clicking check button.

Can you give me some hints please since ı ve just started c sharp...
 
Technology news on Phys.org
by the way ı try to use backtracking algorithm .Am ı right ? or can anyone suggest to me easir way to generate sudoku.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
Replies
13
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
Replies
7
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K