feat: fast-chess-tag can save multiple PGNs for the same players

it will use number indices instead of asking to delete the first PGN.
This commit is contained in:
dogeystamp 2024-12-30 09:51:04 -05:00
parent 612e6ffc15
commit 3885bd7948
No known key found for this signature in database

View File

@ -59,9 +59,13 @@ mkdir -p games
PGN=games/"$TAG1"__"$TAG2".pgn
rm -f engine1 engine2
if [ -f "$PGN" ]; then
rm -i "$PGN"
fi
IDX=1
while [ -e "$PGN" ]; do
PGN=games/"$TAG1"__"$TAG2"__"$IDX".pgn
IDX=$(( $IDX + 1 ))
done
printf "using pgn output: %s\n" "$PGN" > /dev/stderr
git checkout "$TAG1"
cargo build --release