README.md 1.09 KB
Newer Older
Matthew Hausknecht's avatar
Matthew Hausknecht committed
1
HFO
Matthew Hausknecht's avatar
Matthew Hausknecht committed
2 3 4 5
===============

[Half Field Offense in Robocup 2D Soccer](http://www.cs.utexas.edu/~AustinVilla/sim/halffieldoffense/) is a subtask in RoboCup simulated soccer, modeling a situation in which the offense of one team has to get past the defense of the opposition in order to shoot goals. 

Matthew Hausknecht's avatar
Matthew Hausknecht committed
6
## Dependencies
Matthew Hausknecht's avatar
Matthew Hausknecht committed
7 8
 - [rcssserver-15.2.2](http://sourceforge.net/projects/sserver/files/rcssserver/15.2.2/)
 - [librcsc-4.1.0](http://en.sourceforge.jp/projects/rctools/downloads/51941/librcsc-4.1.0.tar.gz/)
Matthew Hausknecht's avatar
Matthew Hausknecht committed
9
 - [soccerwindow2-5.1.0](http://en.sourceforge.jp/projects/rctools/downloads/51942/soccerwindow2-5.1.0.tar.gz/) (Optional)
Matthew Hausknecht's avatar
Matthew Hausknecht committed
10

Matthew Hausknecht's avatar
Matthew Hausknecht committed
11
## Install
Matthew Hausknecht's avatar
Matthew Hausknecht committed
12
1. Edit the `LIBRCSC_INCLUDE`/`LIBRCSC_LINK` variables in `CMakeLists.txt` to point to your librcsc include/lib directories. 
Matthew Hausknecht's avatar
Matthew Hausknecht committed
13 14
2. `cmake .`
3. `make`
Matthew Hausknecht's avatar
Matthew Hausknecht committed
15

16 17 18 19
## (Optional) Patch rcssserver
By default if your agent takes longer then two seconds to select an action it will be disconnected from the server. To enable longer wait times, apply the following patch and rebuild your rcssserver:

`patch your_path/rcssserver-15.2.2/src/stadium.cpp < stadium.patch`.
20

Matthew Hausknecht's avatar
Matthew Hausknecht committed
21
## Run
Matthew Hausknecht's avatar
Matthew Hausknecht committed
22
```bash
Matthew Hausknecht's avatar
Matthew Hausknecht committed
23
./bin/start.py
Matthew Hausknecht's avatar
Matthew Hausknecht committed
24
```