I am working on "Move" of exercise Fifteen in PSET3 of CS50.
I am unsure about how to keep track of the blank space. I have tried to add the row and column number of the initial blank space as a global variable, as was suggested on this forum.
int blank_row = d-1;
int blank_column = d-1;
When I do this, I get the error "initializer element is not a compile-time constant".
When I changed my program, and added the same lines after init() instead, I got the error "unused variable".
When I add it to the move function itself, the problem is that it reset the blank space to initial position every time the function is called.
How to go about this?
Help is greatly appreciated!