my bots for halite 2 written over 2 days. highest rank is the viable settler attacker bot (v5) - rank 760ish
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MyBot.py
MyBot_battlemode_undock_v7.py
MyBot_battlemode_v6.py
MyBot_bumrush_v9.py
MyBot_failed_planetRank.py
MyBot_rambo_v10.py
MyBot_settler_attacker.py
MyBot_v1.py
MyBot_viable_settlerattackerv5.py
README.MD
run_game.bat
run_game.sh
run_game2.bat
run_gym.bat

README.MD

postmortem of bots

  • v1-3 - basic default settler bot provided by halite, just feeling my way around
  • v4 - settler attacker bot from PythonProgramming
  • v5 (most successful) - viable settler attacker bot - instead of only settling unoccupied planets, settle on empty spots on occupied planets too

all my other attempts on modifiying this failed

  • v6 (failed) - planetRank - attempting to come up with a formula so you incorporate planet size and enemy position as well as distance to planet (which was the only thing the naive code considered)
  • v6 - battlemode - the moment you have a numerical superiority, attack all ships
  • v7 - battlemode undock - the moment you have numerical superiority, undock and attack all ships
  • v8 - (resubmission of v5 since prior attempts were doing poorer)
  • v9 - bumrush - if you can reach the other enemy ships within the first 20-50 turns, attack them immediately without trying to dock at all
  • v10 - rambo - have a single ship split off and only attack docked enemy ships

this repo is at:

https://github.com/sw-yx/Halite2-bots.git