bool won(void) {
for(int i= 0; i<d; i++)
{
for(int j = 0; j <d; j++)
{
if((i==(d - 1)) && (j==(d -1)) && board[i][j]== 0)
{
if(board[i][j] < board[i][j+1] )
{
return true;
}
}
}
}
// TODO
return false;
}
I am getting an error which says timed out while waiting for program to exit. Can somebody please help me with what could possibly be my mistake here? Thank you! :)