Create automated test to cover corner cases. Here are some corner cases:
Mate in one: 1
Mate in one, white promotion to knight to mate: 19
Mate in one, white promotion to queen to mate: 20
Mate in one, castle to mate: 305
Mate in one, en passant to mate: 306
Mate in two, white to move: 307
Mate in two, white promotes to knight to mate: 911
Mate in two, black to move: 1255
Mate in two, black promotes to mate: 1268
Mate in two, white to move: 1471
Mate in three, white to move: 3719
Mate in three, black to move: 4139
Mate in one, cooked puzzle (two solutions): 154
Mate in one, cooked puzzle, promotion: 261
Mate in two, cooked puzzle: 324, 632, 3460
Mate in two, opponent promotes to queen: 379
Mate in two, opponent promotes to knight: 553
Last puzzle: 4462
Create automated test to cover corner cases. Here are some corner cases:
Mate in one: 1 Mate in one, white promotion to knight to mate: 19 Mate in one, white promotion to queen to mate: 20 Mate in one, castle to mate: 305 Mate in one, en passant to mate: 306 Mate in two, white to move: 307 Mate in two, white promotes to knight to mate: 911 Mate in two, black to move: 1255 Mate in two, black promotes to mate: 1268 Mate in two, white to move: 1471 Mate in three, white to move: 3719 Mate in three, black to move: 4139 Mate in one, cooked puzzle (two solutions): 154 Mate in one, cooked puzzle, promotion: 261 Mate in two, cooked puzzle: 324, 632, 3460 Mate in two, opponent promotes to queen: 379 Mate in two, opponent promotes to knight: 553 Last puzzle: 4462