diff --git a/SAC_LSTM_Bot/sac_train.sh b/SAC_LSTM_Bot/sac_train.sh index cfd52f5..704b672 100755 --- a/SAC_LSTM_Bot/sac_train.sh +++ b/SAC_LSTM_Bot/sac_train.sh @@ -52,6 +52,9 @@ echo "Weights: $SACLSTM_WEIGHTS_PATH" # ── compile bot + java runner ───────────────────────────────────────────────── (cd "$SCRIPT_DIR" && nimble build -d:release) || { echo ">>> bot build failed"; exit 1; } mkdir -p "$WEIGHTS_DIR" "$CLASSES_DIR" +# Startup sweep: atomic saves leave sac_latest.zip.tmp.*.part corpses behind if +# a run is SIGKILLed (libzip modify-path, see notebook forensics) — clear them. +rm -f "$WEIGHTS_DIR"/sac_latest.zip.tmp.*.part "$WEIGHTS_DIR"/sac_latest.zip.tmp javac -cp "$JAR" -d "$CLASSES_DIR" "$RUNNER_DIR/RunTraining.java" || { echo ">>> javac failed"; exit 1; } # ── weighted opponent pick over "Name:w,Name:w" ───────────────────────────────