Commit 7cd4fc56 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Updated readme and comments.

parent 7a4eddf1
......@@ -23,10 +23,4 @@ By default if your agent takes longer then two seconds to select an action it wi
`patch your_path/rcssserver-15.2.2/src/stadium.cpp < stadium.patch`
## Run
```bash
./bin/start.py
```
and in a seperate terminal
```bash
./examples/hfo_example_agent
```
To start the HFO server `./bin/start.py` then start the agent `./example/hfo_example_agent` or start them both at the same time: `(./bin/start.py &) && ./example/hfo_example_agent`.
......@@ -19,7 +19,7 @@ int main() {
const std::vector<float>& feature_vec = hfo.getState();
// Create a dash action
Action a = {DASH, 100., 0.};
// Perform the dash and recieve the reward
// Perform the dash and recieve the current game status
status = hfo.act(a);
}
// Check what the outcome of the episode was
......
......@@ -25,7 +25,7 @@ if __name__ == '__main__':
while status == HFO_Status.IN_GAME:
# Grab the state features from the environment
features = hfo.getState()
# Take an action and get the reward
# Take an action and get the current game status
status = hfo.act((HFO_Actions.KICK, 100, 12.3))
print 'Episode', episode, 'ended with',
# Check what the outcome of the episode was
......
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