This is the error I get:
:( init initializes 3x3 board correctly
\ expected file to be of length 18, not 19
:( init initializes 4x4 board correctly
\ expected file to be of length 38, not 39
However, my code for init function is as follows:
void init(void)
{
for(int i = 0; i < d; i++)
{
for(int j = 0; j < d; j++)
{
board[i][j] = d*(d - j) - (i + 1);
}
}
board[d - 1][d - 1] = '_';
}
How can I solve this?