|
-
December 9th, 2010, 04:27 AM
#5
Re: Getting Possible Values (Sudoku Game)
 Originally Posted by brycematheson
I'm a little confused. As you can tell, I'm a beginner at C++.  From the above statement, this is about what I got:
Code:
for (int i = 0; i < 9; i++)
{
for (int j = 0; j < 9; j++)
{
}
}
Haha. Could you maybe explain it a little bit more? Thank you!
The above nested loops would run 81 cycles, i. e. they were suitable to examine each cell in your sudoku game. Your current q. however asked for the possible numbers for a given empty cell, right? The examination of the whole table won't help for taht, right?
So, you better read my post more thoroughly. It describes what you could do below comment
//Displays the possible values based on the coordinates the user entered
and the description isn't - mainly - C++ code but a verbal description what you could do to find the possible numbers. It is now your task to work out the C++ code for that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|