tests.sh: add some more castling and chess960 PGN tests - chess-puzzles - chess… | |
git clone git://git.codemadness.org/chess-puzzles | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0dcd2f065cb678018fb2e30055550987705a09c5 | |
parent 14096028aee533f132200b020687e1ce3884105b | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Mon, 22 Jan 2024 01:07:15 +0100 | |
tests.sh: add some more castling and chess960 PGN tests | |
Diffstat: | |
M tests.sh | 21 +++++++++++++++++++++ | |
1 file changed, 21 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/tests.sh b/tests.sh | |
@@ -306,6 +306,11 @@ testfen 'black promote to knight (fixup uppercase to lower… | |
'rnbqkb1r/p1ppppPp/8/8/8/8/P1PPPP1P/RnBQKBNR w KQkq - 0 2'\ | |
'rnbqkb1r/p1ppppPp/8/8/8/8/PpPPPP1P/R1BQKBNR b KQkq - 0 1'\ | |
'b2b1N' | |
+ | |
+testfen 'castling chess960'\ | |
+ 'qnkr1r2/p1p1p2p/4nppN/1p6/1P1p4/3P2P1/PQPNPP1P/2RK2Rb w KQ - 4 13'\ | |
+ 'qnrkbnrb/pppppppp/8/8/8/8/PPPPPPPP/QNRKBNRB w KQkq - 0 1'\ | |
+ 'd2d3 g7g6 e1c3 d7d5 c3h8 g8h8 b2b4 h8g8 g2g3 e8c6 f1e3 b7b5 a1e5 f7f6… | |
} | |
tests_pgn() { | |
@@ -547,6 +552,22 @@ testpgn 'Test a longer sequence of moves, promotion, castl… | |
'1. d4 d5 2. Bf4 c6 3. e3 Bf5 4. Bd3 e6 5. g4 Nf6 6. gxf5 Qb6 7. fxe6 … | |
'startpos'\ | |
'd2d4 d7d5 c1f4 c7c6 e2e3 c8f5 f1d3 e7e6 g2g4 g8f6 g4f5 d8b6 f5e6 f7e6… | |
+ | |
+# test castling chess 960 | |
+testpgn 'Castling chess960'\ | |
+ '1. d3 g6 2. Bc3 d5 3. Bxh8 Rxh8 4. b4 Rg8 5. g3 Bc6 6. Ne3 b5 7. Qe5 … | |
+ 'qnrkbnrb/pppppppp/8/8/8/8/PPPPPPPP/QNRKBNRB w KQkq - 0 1'\ | |
+ 'd2d3 g7g6 e1c3 d7d5 c3h8 g8h8 b2b4 h8g8 g2g3 e8c6 f1e3 b7b5 a1e5 f7f6… | |
+ | |
+testpgn 'PGN chess960'\ | |
+ '1. d3 g6 2. Bc3 d5 3. Bxh8 Rxh8 4. b4 Rg8 5. g3 Bc6 6. Ne3 b5 7. Qe5 … | |
+ 'qnrkbnrb/pppppppp/8/8/8/8/PPPPPPPP/QNRKBNRB w KQkq - 0 1'\ | |
+ 'd2d3 g7g6 e1c3 d7d5 c3h8 g8h8 b2b4 h8g8 g2g3 e8c6 f1e3 b7b5 a1e5 f7f6… | |
+ | |
+testpgn 'castling chess960'\ | |
+ '1. d3 c6 2. Bd2 a5 3. a4 f6 4. Ba2 Bf7 5. Bxf7 Qxf7 6. Nb3 Bc7 7. g4 … | |
+ 'rbnkbrqn/pppppppp/8/8/8/8/PPPPPPPP/RBNKBRQN w KQkq - 0 1'\ | |
+ 'd2d3 c7c6 e1d2 a7a5 a2a4 f7f6 b1a2 e8f7 a2f7 g8f7 c1b3 b8c7 g2g4 e7e5… | |
} | |
tests_fen |