Skip to content

bovard/BC2014

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

524 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This shall be our glorious entry this year!

Going for 1st place (or at least the finals again)!

Instructions to install

  1. Get the battlecode client from https://www.battlecode.org/contestants/releases/
    • Install it in a directory like ~ or MyDocuments or something (remember where!)
  2. Remove the teams folder
    • cd /path/to/Battlecode2014
    • rm -rf teams
  3. Clone this repo in the teams folder:
    • git clone git@bitbucket.org:bovard.tiberi/battlecode-2014.git teams
  4. Open the parent directory up in the IDE of your choice
    • I'm using IntelliJ CE and it works well

Behavior Tree

The behavior tree works a bit different this year. It starts from the root node every single time now!

This means:

  1. Since the pre of the parents is called before the pre of the children, they implicitly already have the pre!
  2. No more !inCombat all over the place, just place a combat on the top level selector
  3. We now support sequencers!
  4. We've added a post() method to show if the behavior has completed. This should be called every time before calling the node
  5. 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!

About

Our entry to battle code 2014

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors