tests.sh: add a few more tests for ambigous moves (files and ranks) - chess-puzzles - chess puzzle book generator
(HTM) git clone git://git.codemadness.org/chess-puzzles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 07c37ef3931e33b55aebe2561ed92d37735cabe8
(DIR) parent 887918beab1aba026f2c228bb8ef770d420d338e
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 12 Jun 2024 00:28:12 +0200
tests.sh: add a few more tests for ambigous moves (files and ranks)
Diffstat:
M tests.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/tests.sh b/tests.sh
@@ -611,6 +611,21 @@ testpgn 'test en passant check (was bug)'\
'35. Kg4 h5+ 36. gxh6 f5+ 37. Kg5 Rg3#'\
'8/2R2p1p/4k1p1/6P1/5P1P/r5K1/8/8 w - - 1 35'\
'g3g4 h7h5 g5h6 f7f5 g4g5 a3g3'
+
+testpgn 'test ambigous queen move'\
+ '1. Qf3d5'\
+ '8/1Q3Q2/8/8/8/1Q3Q2/8/3K2k1 w - - 0 1'\
+ 'f3d5'
+
+testpgn 'test ambigous queen move 2'\
+ '1. Q7b5'\
+ '8/1Q3Q2/8/8/8/1Q3Q2/8/3K2k1 w - - 0 1'\
+ 'b7b5'
+
+testpgn 'test ambigous queen move 3'\
+ '1. Qfe7'\
+ '8/1Q3Q2/8/8/8/1Q3Q2/8/3K2k1 w - - 0 1'\
+ 'f7e7'
}
tests_fen