allow "startpos" for FEN for the starting position - 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 318de62766d2fd0caa0594f939cd1b2d9d143e0a
 (DIR) parent d1450a9bf4d9b009733094038420a82a6872a8ae
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 19 Dec 2023 00:33:27 +0100
       
       allow "startpos" for FEN for the starting position
       
       Diffstat:
         M fen_to_svg.c                        |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/fen_to_svg.c b/fen_to_svg.c
       @@ -204,6 +204,9 @@ main(int argc, char *argv[])
                }
        
                fen = argv[1];
       +        if (!strcmp(fen, "startpos"))
       +                fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
       +
                moves = argv[2];
        
                /* initial board state, FEN format */