when I run Check50 my program passes all the tests except one, the terminal spits out this weird cryptic error
:( 3x3 board: make sure game is winnable expected "Tile to move:", not "[2J[0;0H1-2-3|4-5-6|0-7-8 ftw!"
what could possibly be the cause of this considering that the game was won with a 4x4 board?
bool won(void)
{
int x = 1;
int count = 0;
for(int i = 0; i < d; i++)
{
for(int j = 0; j < d; j++)
{
if(board[i][j] == x)
{
x++;
count++;
}
if(count == (d * d) - 1)
{
return true;
}
}
}
return false;
}