|
Re: Logic Problem involving loops and arrays
i just realized something: I was mistakenly continuing if puzzle[x][y] != '0', when it should actually be if puzzle[x][y] == '0'..... since an input of '0' means that that is an empty square that the program should consider. If it isn't '0', the the program should stop at the current puzzle[x][y] and return -1 since it is already occupied by a number 1-9.
|