
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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 2×3 (3×2) board style (found on ‘older’ Nokia phones eg.).