![]() ![]() The View does not know anything about the data that is being displayed. And the Controller contains the business logic as well as ties the Model and the View together. The View contains all the UI related code. It is used to separate the different parts of the program into its logical components. I used the MVC, or Model-View-Controller, programming pattern as a guide when I wrote the game. This article basically describes how the game was put together as well as some background on the design and code decisions I made along the way. ![]() The object of the game is to fill in the blank cells so that each row, column and 3 x 3 mini grid contains each number only once. The game starts out with some cells filled in with the numbers from 1 through 9. The basic Sudoku game is played on a 9 x 9 grid that is subdivided into 3 x 3 mini grids. This project demonstrates several programming concepts like Singletons, Shared code, Delegates and Events, multi-threading, as well as the MVC programming pattern. Over the course of 4 days, this is the result. After playing many versions of the game on the Web, newspapers, and on iOS devices, I decided to see if I could write my own. ![]() I started playing Sudoku when it became popular in the early 2000s. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |