This content has been marked as final.
Show 3 replies

1. Re: Sudoku algorithm
807606 Apr 19, 2007 5:55 PM (in response to 807606)Looks like you are stuffed unless you can take a reasonable excuse to your examiner. Nobody here is going to write the program for you  that would be helping you cheat. 
2. Re: Sudoku algorithm
807606 Apr 19, 2007 5:55 PM (in response to 807606)Create a two dimensional array
add whatever the numbers in the board are supposed to be.int[ ][ ] array = new int[10][10];
then something sort of like this:
something like that, you'll have to tinker with it and figure out other stuffint number, number2, number3; array[1][3] = number; array[1][5] = number2; array[3][5] = number3; for(int i=0; i < 10; i++) { for(int j=0; j < 10; j++) { if(array[i][j] == number  array[i][j] == number2  array[i][j] == number3) { array[i][j] = 0; } }//for(columns) }//for(rows)

3. Re: Sudoku algorithm
807606 Apr 19, 2007 6:07 PM (in response to 807606)Thx shlumph. I'll try that! :)
sabre150: I'm not asking you to write the program for me, I just need some help to get stardet.