generate.sh: fix to detect possible rook promotion and support uppercase - 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 34e46a6fdd7cddde422a6b75c285879951d540e9
(DIR) parent 0dcd2f065cb678018fb2e30055550987705a09c5
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 22 Jan 2024 01:09:24 +0100
generate.sh: fix to detect possible rook promotion and support uppercase
Diffstat:
M generate.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/generate.sh b/generate.sh
@@ -276,7 +276,7 @@ while read -r line; do
m="${m% }"
m="${m%[a-h][0-9][a-h][0-9]}"
- m="${m%[qnb]}" # possible promotion
+ m="${m%[qrbnQRBN]}" # possible promotion
m="${m% }"
test "$prevmoves" = "$m" && break # same, break also