I'm sorry for making another post of this, but I don't want to look other classmates' code while I'm still trying to do this myself.
I'm having trouble with move() in fifteen.c. I'm not sure how to tell whether the tile the user wants to move is adjacent to the empty tile on the board. I used strtok() in initials.c because I wasn't sure of how to use indices there, and now I guess it's coming back.
This is what I have for the function right now:
bool move(int tile)
{
int empty_tile = 0;
int temp = 0;
for (int i = 0; i < d; i++)
{
for (int j = 0; j < d; j++)
{
}
}
return false;
}