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/ ...@@ -83,9 +83,10 @@ soccerwindow2-prefix/
# Logs # Logs
log/ log/
bin/log/ bin/log/
high_level_sarsa_agent
# Misc # Misc
example/sarsa_offense/weights* example/sarsa_offense/weights*
example/sarsa_offense/early_game_model* example/sarsa_offense/early_game_model*
example/sarsa_offense/late_game_model* example/sarsa_offense/late_game_model*
example/sarsa_offense/high_level_sarsa_agent
weights
#!/bin/bash #!/bin/bash
mkdir weights
# NUM_EPISODES=20000
NUM_EPISODES=20
for i in `seq 5` for i in `seq 5`
do do
./bin/HFO --offense-agents=3 --defense-npcs=2 --defense-team=helios --offense-on-ball 5 --headless > "logfile_$i" & ./bin/HFO --offense-agents=3 --defense-npcs=2 --defense-team=helios --offense-on-ball 5 --headless > "logfile_$i" &
P1=$! P1=$!
sleep 10 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=$! P2=$!
wait $P1 $P2 wait $P1 $P2
mkdir "weights/trial$i"
mv example/sarsa_offense/weights* "weights/trial$i/"
echo "COMPLETED" echo "COMPLETED"
done done
...@@ -22,8 +22,8 @@ LINKEROPTIONS = -Wl,-rpath,$(HFO_LIB_DIR) ...@@ -22,8 +22,8 @@ LINKEROPTIONS = -Wl,-rpath,$(HFO_LIB_DIR)
CXX = g++ CXX = g++
#Sources #Sources
# SRC = high_level_sarsa_agent.cpp SRC = high_level_sarsa_agent.cpp
SRC = high_level_sarsa_agent_changed.cpp # SRC = high_level_sarsa_agent_changed.cpp
#Objects #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