marcintustin / Halite2_py3_alpha

My first Halite II bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building and submitting

cd /Users/marcin/Downloads/Halite2_Python3_MacOS
. .venv/bin/activate
zip -r ../botzip.zip *
python .venv//lib/python3.6/site-packages/hlt_client/client.py bot -b ../botzip.zip

Running locally

. ./.venv/bin/activate # my virtualenv location
./halite --log -d "240 160" "python MyBot.py" "python MyBot.py"

Files named 0_Settler.log are your debug output

Using your starter kit

All starter kits should contain a run_game.sh and run_game.bash, you can use these scripts to quickly run a game of halite. By default, this script runs the basic Settler bot against itself.

Bot submission guidelines

Before submitting a bot, make sure you adhere to our guidelines, or the upload or compilation of your bot will fail.

  1. You should have a MyBot.{extension for language} in the root folder of your zip. For Rust, this should be a cargo.toml
  2. If you are building on top of starter kit provided by us, make sure to include the hlt folder.

Uploading your bot

  • Website: You can use the play page in the Halite website to submit your bot.
  • Halite Client: If you a command line experience, you can use the Halite Client tool to upload your bot.

About

My first Halite II bot


Languages

Language:Python 99.7%Language:Shell 0.2%Language:Batchfile 0.2%