This shall be our glorious entry this year!
Going for 1st place (or at least the finals again)!
- Get the battlecode client from https://www.battlecode.org/contestants/releases/
- Install it in a directory like ~ or MyDocuments or something (remember where!)
- Remove the teams folder
- cd /path/to/Battlecode2014
rm -rf teams
- Clone this repo in the teams folder:
git clone git@bitbucket.org:bovard.tiberi/battlecode-2014.git teams
- Open the parent directory up in the IDE of your choice
- I'm using IntelliJ CE and it works well
The behavior tree works a bit different this year. It starts from the root node every single time now!
- Since the pre of the parents is called before the pre of the children, they implicitly already have the pre!
- No more !inCombat all over the place, just place a combat on the top level selector
- We now support sequencers!
- We've added a post() method to show if the behavior has completed. This should be called every time before calling the node
- We've added a reset() which should be called when a node is completed or needs to be reset
See TeamRobot.run() to see how the trees work in action now!