diff --git a/tools/training_runner/run.sh b/tools/training_runner/run.sh index 15a40a1..8fe31a9 100755 --- a/tools/training_runner/run.sh +++ b/tools/training_runner/run.sh @@ -85,7 +85,7 @@ while true; do # Short battles bound the reward, and fresh-process restarts clear thread state. battle_rounds=$(( remaining > 60 ? 60 : remaining )) echo ">>> Running $battle_rounds rounds (opponent: $OPPONENT)..." - java -cp ".:$JAR" RunTraining "$OPPONENT" "$battle_rounds" && break || { + java -cp ".:$JAR" RunTraining "$OPPONENT" "$battle_rounds" || { exit_code=$? echo ">>> Java runner exited with code $exit_code — checking if done..." remaining=$(remaining_rounds)