Could someone explain me why my superb idea isn't working? Okay, perhaps it isn't that superb but it was my original own idea.
In pset3 fifteen game when seeing if the game is won, I first created a winning array then I went through in a for loop the board:
if (board[i][j] == winning_board[i][j]) counter++
then if counter == number of numbers on board return true.
But for some reason the comparison of arrays doesn't work? When I changed the logic wee bit; counted something else, my program worked.
Is there something special when comparing array values?