- Sudoku app windows phone full#
- Sudoku app windows phone windows 8.1#
- Sudoku app windows phone code#
- Sudoku app windows phone Pc#
- Sudoku app windows phone download#
The InitialiseSet() method generates the unique solution. In the above code, GameLevel is of type enum and it defines the complexity levels. Now unmask positions and create problem set. InitialiseSet // This first creates answer set by using Game combinations public void GenerateGame(GameLevel level)
Sudoku app windows phone code#
The code for this is given below:Ĭopy Code // Method: GenerateGame // Purpose: Generates game based on complexity level. GenerateGame(GameLevel level) method generates the new game. Sudoku class is the main class implementing the game.
Sudoku app windows phone full#
You can see the full implementation by downloading the source code using the links given above. I will only explain the important methods.
You can use this if the problem is complex and for getting some clues. I have provided a button control to show the answer, which displays the answer for a few seconds and then brings back the problem. The event arguments of this event enable us to set the appropriate error message for the affected column. The ColumnChanging event of the DataTable is quite useful and I have used this event to handle data validations such as "valid number", "answer position not changed" and "number is not a duplicate". As I am using two dimensional array to keep the problem and answer sets, I have exposed two properties ProblemSet and AnswerSet which return the data in two dimensional array as a DataSet.Īnother important part of the game is to provide data validations. I have used DataSet which is easier to bind to the grid. I have used DataGrid which is a very useful control to represent data in tabular form. GenerateGame() method of the Sudoku class uses this technique. This way, I could generate 1000s of combinations. Hence, I decided to take one unique solution as the base and then derive other unique solutions by swapping rows, columns, sets and reversing numbers. This was a bit complex and was taking time. Initially, I spent some time to create a solution by populating sets which were independent using random numbers between 1 and 9. The basic design idea is to first generate the solution and then unmask certain spots based on the complexity level. The view is implemented using a DataGrid and the main form for implementing the view is in SudokuMainForm.cs file. The main class implementing this game is Sudoku and is implemented in Sudoku.cs file. Now that we know the rules, let us see the implementation. So, the number in each of these subsets should also be between 1 and 9 and should appear only once.
Sudoku app windows phone Pc#
NET Framework installed on your PC or laptop to run this program. The user can view the answer for a few seconds to get a clue. The game provides three complexity levels: simple, medium and complex.
I thought why not develop this game in C#? This article discusses the implementation of this game in C#. I commute by train daily to my office this puzzle, in everyday newspaper, was one of my favorite ways to pass time in the train. Windows Phone 8.I came across the Sudoku game a few months ago.
Sudoku app windows phone windows 8.1#
Windows 8.1 - Sudoku Solver- PWNING Sudokus Like A BOSS! B-) app for Windows in the Windows Store
I'll share the Store links and some pictures now and leave the trying and testing part of the app to you!
Sudoku app windows phone download#
I'd really want and like everyone who has a Windows 8.1 device and/or a Windows Phone 8.1 device to download this app, try it out and provide feedback! :DĪlso, I'd really appreciate if you can rate and review this app in the respective Stores so that it will enable my app to get further up in the Store listings and maybe get featured some day as well! :D The app is a Universal app, meaning it will work with ALL devices running Windows 8.1/Windows Phone 8.1! :D 'Sudoku Solver - PWNING Sudokus Like A BOSS! B-)' is an app that will solve any Sudoku for you at lightning fast speed! :) I'm really happy and excited to announce that my very first app has now been published and is available for download from the Windows Store & Windows Phone Store! :D