Skip to content

rish-16/HaliteAI-Bots

Repository files navigation

HaliteAI-Bots

Halite Challenge 2017 bots playground


Downloading the starter kits for language of choice

Go to the Starter Kit website.

Search for your language of choice under your platform and click on the download link provided.

The contents of the starter kit should include the following:

halite (Unix executable)
hlt (folder)
MyBot.py (main program)
README.md (introduction)
run_game.bat (for Windows)
run_game.sh (for Unix-based OS)

Note: Do not change the name of the MyBot.py file.


Running bots locally

To enable bots to compete locally, copy and paste the following line of code into the terminal/command prompt:

./halite -d "240 160" "python3 MyBot.py" "python3 MyBotv1.py"

where MyBot.py is Player 1 and MyBotv1.py is Player 2. The game screen dimensions are 240x16.

Note: The halite Unix executable should be installed locally before playing the game.


Note: Ensure that the bot that is being used for submission to the Halite Challenge has the name of MyBot.<--lang-ext--> before compressing the files.


Submitting bots to the Halite Challenge

Go to the Halite Challenge website

Click on PLAY

Open the directory with the MyBot.py file and the htl directory. Compress the file and the directory into a .zip folder.

Drag and drop the compressed folder into the designated area that says "SUBMIT A BOT".

After uploading, the bot should have played a few starter games.

About

HaliteAI mining bots playground

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published