problem in making sudoku game

i am on my way to make a sudoku game....and i want the user to enter the number wherever he wants without me asking where to enter....how can i do that?
If you want to do that in the console... you can't. Not easily, anyways. You'd need to use some form of GUI.
What is a GUI? I'm a beginner.
I would recommend you to go wıth the console at this point.
what you can do is to print out something like this;
http://blogs.sharepointdam.com/jen/Lists/Photos/SudokuSolver.JPG
that's an image of a console sudoku. (which is actually kind of poor design, you would put dashes between, for example, 3x3 areas.)
by doing console, you can focus on the sudoku algorithm, with GUI, well, you'll need lots of Windows or Linux (Qt) stuff. as a beginner, it's way too much for you.

also;
instead of entering strings, which is hard for user; I would use a chess board approach.
you could print names for rows and columns, and user would enter like, A2:5, meaning, row A, column 2, put 5.
and every time user enters a number, I would clear screen and print the new settings, or just print the new one.
if you go for a GUI, it will give you more headache. that's my opinion.

to be more precise, you could use the following;
P-A2-5: means, "put 5 to row A, column 2
R-C4-6 means, "replace the value at row C column 4 with 6.
Reset: reset board
N- new game
etc...


PS: search for "console sudoku" on the internet to see what other people has done.
PS2: Graphical User Interface, windows, buttons, sliders etc.
Last edited on
Topic archived. No new replies allowed.