Skip to content

coreylowman/AllYourTurtles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AllYourTurtles bot for Halite III

Was able to make it into the top 10 with this.

Overview

  1. Precompute a bunch of stuff
  2. Compute halite/turn for every ship position pair
  3. Spawn a ship if we are behind opponent in # of ships produced or it would give us positive return
  4. Greedily assign ships to positions
    1. once a ship is assigned, reduce the halite/turn of any other assignments to the same position accordingly
  5. Plan dropoffs just based on halite around them, proximity to other dropoffs, and number of ships going there
  6. Plan ships using WHCA* (windowed hierarchical cooperative A* - basically just A* with a time window where reservations matter)

The comments in the code have more details.

Code

Everything is in MyBot.py :X It's commented though, and (at least I think) fairly clean.

Entrypoint: main()

Classes:

Notable functions:

About

Halite 3 Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages