Reputation: 4611
I need to design a table like the sudoko Table where the user has to enter the numbers.Is there any way to do it in C#?or we have to use create usercontrol?
Upvotes: 0
Views: 293
Reputation: 4967
I would go for a UserControl. By doing that you can easilly implement error highlighting and such (you know - when the 'player' enters two 7's in the same table).
I've made a non-GUI implementation of a Sudoku solver recently and it all boiled down to the data structure representing the whole board. By making this first and having your UserControl hook-up on this you'll be able to provide a nice UI based on the actual game rules.
I'd recommend making the game logic (and therefore the UserControl(s)) very general in a way that would easilly allow you to make other types of 'Sudoku' games, like the 2x3 (3x2) board style (found on 'older' Nokia phones eg.).
Upvotes: 1