I used the cs50 sample 3x3.txt and 4x4.txt to check my code. I saw 'ftw' output for both cases so it works. I have checked my move() function manually and it works but when I use check50 to check for error I get two errors I can't really understand.
:( 3x3 board, from start try to move tile 2, 4, 5, 6, 7, 8 \ expected "5" character 1 of line 14, not "0":) 3x3 board, move blank left (tile 1) then up (tile 4), then try to move tiles 1, 2, 6, 8 :( 3x3 board, move blank up (tile 3), then try tile 2 \ expected "0" character 5 of line 10, not "2":) 3x3.txt wins the 3x3 board
Can some one tell me if there is a logical error in the code. Here is the code I wrote https://gist.github.com/Abel-2016/044186e6652125e2cb7fccc615d35a79