|
|
|
@ -73,7 +73,7 @@ run_battle() { |
|
|
|
|
printf "The winner is: " |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Run battle without GUI, following the settings file, save the results into file |
|
|
|
|
# Run battle without GUI, following the settings file, save the results into file |
|
|
|
|
robocode "$gui" -battle "$(pwd)/$settings" -results "$(pwd)/$results" > /dev/null |
|
|
|
|
# Obtain the winner from the results file |
|
|
|
|
cat "$results" | tail -2 | awk 'NR==1F {print $2}' |
|
|
|
|