Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
50151e83
Commit
50151e83
authored
Jul 16, 2017
by
drallensmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hopefully do everything needed for hand_coded_defense_agent to be reliably usable
parent
889fd855
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
.gitignore
.gitignore
+1
-0
example/defense_2v2.sh
example/defense_2v2.sh
+14
-0
example/hand_coded_defense_agent
example/hand_coded_defense_agent
+0
-0
example/make_hand_coded_defense_agent_executable.sh
example/make_hand_coded_defense_agent_executable.sh
+0
-3
No files found.
.gitignore
View file @
50151e83
...
...
@@ -73,6 +73,7 @@ example/mid_level_move_agent
example/mid_level_kick_agent
example/mid_level_dribble_agent
example/communication_agent
example/hand_coded_defense_agent
# Dependency directories
librcsc-prefix/
...
...
example/defense_2v2.sh
0 → 100755
View file @
50151e83
#!/bin/bash
# HAS TO BE RUN FROM EXAMPLE DIR DUE TO hand_coded_defense_agent CONFIG!
../bin/HFO
--offense-npcs
=
2
--defense-agents
=
1
--defense-npcs
=
1
--trials
20
--headless
--port
=
7000 &
sleep
5
./hand_coded_defense_agent &> agent1.txt &
sleep
5
# The magic line
# $$ holds the PID for this script
# Negation means kill by process group id instead of PID
trap
"kill -TERM -
$$
"
SIGINT
wait
\ No newline at end of file
example/hand_coded_defense_agent
deleted
100755 → 0
View file @
889fd855
File deleted
example/make_hand_coded_defense_agent_executable.sh
deleted
100755 → 0
View file @
889fd855
# Run this file to create an executable of hand_coded_defense_agent.cpp
g++
-c
hand_coded_defense_agent.cpp
-I
../src/
-std
=
c++0x
-pthread
g++
-L
../lib/ hand_coded_defense_agent.o
-lhfo
-pthread
-o
hand_coded_defense_agent
-Wl
,-rpath,../lib
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment