Programming Sudoku Game - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

For me Sudoku was always a fun game to play. But as a computer programmer, I wanted to make the computer generate and solve sudoku puzzles. It was such a challenge for me since that there are no proved formulas to solve any given sudoku puzzle.

sudoku board

They way that most people solve sudoku is using logic, Many use pencils and erasers to help them finding the right numbers. So how do you make a computer program to solve the logic puzzle?

After days and days of trying, I finally made my program solve most suduko puzzles as well as generating valid sudoku puzzles and I wanted to share everything with you.

If this is your first time programming in visual basic, please refer to this beginner lessons to get started.

1. Creating the sudoku grid programmatically

2. Setting the rules of sudoku grid (One unique number 1 - 9 in a row, column and a square)

3. Solving a sudoku puzzle

4. Genrating a valid sudoku puzzle for users to solve

You can download source code of the sudoku project at the last page of this tutorial.

Share This

Home | About | Contact | Privacy Policy

Copyright 2017 - All Rights Reserved.