Commit a25b7aa0 authored by Shashank Suhas's avatar Shashank Suhas

Ready to run task on master branch. Updated .gitignore and batch

parent 647cb225
......@@ -83,9 +83,10 @@ soccerwindow2-prefix/
# Logs
log/
bin/log/
high_level_sarsa_agent
# Misc
example/sarsa_offense/weights*
example/sarsa_offense/early_game_model*
example/sarsa_offense/late_game_model*
example/sarsa_offense/high_level_sarsa_agent
weights
#!/bin/bash
mkdir weights
# NUM_EPISODES=20000
NUM_EPISODES=20
for i in `seq 5`
do
./bin/HFO --offense-agents=3 --defense-npcs=2 --defense-team=helios --offense-on-ball 5 --headless > "logfile_$i" &
P1=$!
sleep 10
(cd ./example/sarsa_offense/ && rm -f "weight*" && ./high_level_sarsa_agent --numAgents 3 --numEpisodes 20000 &)
(cd ./example/sarsa_offense/ && rm -f "weights*" && ./high_level_sarsa_agent --numAgents 3 --numEpisodes $NUM_EPISODES &)
P2=$!
wait $P1 $P2
mkdir "weights/trial$i"
mv example/sarsa_offense/weights* "weights/trial$i/"
echo "COMPLETED"
done
......@@ -22,8 +22,8 @@ LINKEROPTIONS = -Wl,-rpath,$(HFO_LIB_DIR)
CXX = g++
#Sources
# SRC = high_level_sarsa_agent.cpp
SRC = high_level_sarsa_agent_changed.cpp
SRC = high_level_sarsa_agent.cpp
# SRC = high_level_sarsa_agent_changed.cpp
#Objects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment