Game of fifteen is asking us to write code for draw function. It is then followed by following lines of program to log current state of board
My question is what is then the utility of the draw function?
// log the current state of the board (for testing)
for (int i = 0; i < d; i++)
{
for (int j = 0; j < d; j++)
{
fprintf(file, "%i", board[i][j]);
if (j < d - 1)
{
fprintf(file, "|");
}
}
fprintf(file, "\n");