Introduction
Introduction Statistics Contact Development Disclaimer Help
tests.sh: add a few more castle tests - chess-puzzles - chess puzzle book gener…
git clone git://git.codemadness.org/chess-puzzles
Log
Files
Refs
README
LICENSE
---
commit e62dd220612aaada2231586e9c00845700bf4949
parent bcb9d6c7bd496cd907cd960f599eb8d19730973d
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 22 Jan 2024 19:56:19 +0100
tests.sh: add a few more castle tests
update TODO
Diffstat:
M TODO | 10 ----------
M tests.sh | 30 ++++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 10 deletions(-)
---
diff --git a/TODO b/TODO
@@ -1,13 +1,3 @@
- rename fen.c to be more unique so it can be installed in $PATH.
-- read PGN to moves? if its simple to do so.
- - input and output piece mapping? This would make it useful to convert…
- PGN notated games to Lichess etc.
- more tests.
- - piece ambiguity.
- - en passant (in check), etc.
- - in check, checkmate.
- - test more chess960 black kingside and queenside castling.
- test more long sequence and halfmove and movenumber counts.
-? PGN output: add game termination state?
- - PGN output: add stalemate?
- - PGN output: but what if resign, time-out, draw offer?
diff --git a/tests.sh b/tests.sh
@@ -311,6 +311,21 @@ 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…
+
+testfen 'castling chess960'\
+ 'r2k1r2/1pb3pp/2ppqp2/p2np3/P3N1P1/1N1P1P2/1PPBP1QP/R4RK1 b kq - 1 14'\
+ 'r2k1r2/1pb3pp/2ppqp2/p2np3/P3N1P1/1N1P1P2/1PPBP1QP/R2K1R2 w KQkq - 0 …
+ 'd1g1'
+
+testfen 'test castles chess960'\
+ 'rk1r1n2/ppqp1bnp/2pbpp2/6p1/4P1P1/1PPN1P1P/P1QPBN1B/R4RK1 b kq - 1 1'\
+ 'rk1r1n2/ppqp1bnp/2pbpp2/6p1/4P1P1/1PPN1P1P/P1QPBN1B/RK1R4 w KQkq - 0 …
+ 'b1g1'
+
+testfen 'castles chess 960'\
+ 'r4rk1/ppqp1bnp/2pbppn1/6p1/4P1P1/1PPN1P1P/P1QPBN1B/RK1R4 w KQ - 1 2'\
+ 'rk1r4/ppqp1bnp/2pbppn1/6p1/4P1P1/1PPN1P1P/P1QPBN1B/RK1R4 b KQkq - 0 1…
+ 'b8g8'
}
tests_pgn() {
@@ -568,6 +583,21 @@ 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…
+
+testpgn 'test castles chess960'\
+ '14. O-O'\
+ 'r2k1r2/1pb3pp/2ppqp2/p2np3/P3N1P1/1N1P1P2/1PPBP1QP/R2K1R2 w KQkq - 0 …
+ 'd1g1'
+
+testpgn 'test castles chess960'\
+ '1. O-O'\
+ 'rk1r1n2/ppqp1bnp/2pbpp2/6p1/4P1P1/1PPN1P1P/P1QPBN1B/RK1R4 w KQkq - 0 …
+ 'b1g1'
+
+testpgn 'castles chess 960'\
+ '1. ... O-O'\
+ 'rk1r4/ppqp1bnp/2pbppn1/6p1/4P1P1/1PPN1P1P/P1QPBN1B/RK1R4 b KQkq - 0 1…
+ 'b8g8'
}
tests_fen
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.