It forced you to rewrite the isBoardFull method.
I see that more changes were made than just the global variables.
What happens now when the code is executed?
If there are problems, copy the...
Type: Posts; User: Norm
It forced you to rewrite the isBoardFull method.
I see that more changes were made than just the global variables.
What happens now when the code is executed?
If there are problems, copy the...
There is a basic problem in the code using the global variables: row and col. These variables should NOT be global. By global I mean at the class level. Their values are dependent on the context...
Time for some debugging to see what the code is doing. Add some print statements inside the loop that print out the values of i and j and the contents of the board at i and j.