Hard !
This is a good problem, but it needs more test cases. There is no test with the King for instance, and there should be a true and false state test for every piece.
Brilliant!
this doesn't take into account captures or moving a pawn 2 moves from its starting position. should it?
and the occasional other weird rules...
Captures and pawn 2 moves and castling and such aren't possible based upon the assumptions I stated (i.e. no other pieces on the board, the previous move was valid, etc)
Make the vector [1 2 3 4 5 6 7 8 9 10]
36221 Solvers
The Goldbach Conjecture, Part 2
1300 Solvers
Back to basics 16 - byte order
173 Solvers
98 Solvers
Calculate the area of a triangle between three points
919 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!