I have completed Game of Fifteen which works fine using txt inputs check, but if fails to pass check50. Here is the code: https://github.com/bmind12/CS50/blob/master/pset3/fifteen/fifteen.c
~/workspace/pset3/fifteen/ $ check50 2015.fall.pset3.fifteen fifteen.c
:) fifteen.c exists
:) fifteen.c compiles
:( init initializes 3x3 board correctly
\ expected "8" character 1 of line 1, not "0":( init initializes 4x4 board correctly
\ expected file to be of length 38, not 32
:| 3x3 board, move blank up twice
\ can't check until a frown turns upside down
:| 3x3 board, move blank left twice
\ can't check until a frown turns upside down
:| 3x3 board, move blank left then right
\ can't check until a frown turns upside down
:| 3x3 board, move blank up then down
\ can't check until a frown turns upside down
:| 3x3 board, move up-up-left-down-down-left-up-up-right-down-down-right
\ can't check until a frown turns upside down
:| 3x3 board, from start try to move tile 2, 4, 5, 6, 7, 8
\ can't check until a frown turns upside down
:| 3x3 board, move blank left (tile 1) then up (tile 4), then try to move tiles 1, 2, 6, 8
\ can't check until a frown turns upside down
:| 3x3 board, move blank up (tile 3), then try tile 2
\ can't check until a frown turns upside down
:| 3x3.txt wins the 3x3 board
\ can't check until a frown turns upside down
:| 4x4.txt wins the 4x4 board
\ can't check until a frown turns upside down
Want to mention that I don't use all the functions like init or draw to init and draw. As long as it is not possible to pass 2D array with game's schema.