Quick Start Guide
A guide to setting up, developing, and submitting an agent.
Last updated
A guide to setting up, developing, and submitting an agent.
Last updated
The Bomberland repo contains starter kits with examples on how to build your agent.
To clone:
Or download from:
You'll also need the base-compose.yml
and docker-compose.yml
files in the root folder.
Make sure Docker is running. From the root directory of your starter kit (where base-compose.yml
and docker-compose.yml
are located), run in your terminal:
It may take a few minutes to run the first time.
This will build the game server, and connect your starter agent. Since Bomberland is a 2-player environment, the game server will wait for a second agent to connect before starting.
In either a Firefox or Chrome browser, open the game client from:
You should see the following setup menu:
Select 'Agent' as your role, leave 'Agent Id' as agentA
and click 'Connect'.
Use the following keys to play as the Wizard:
Click
a unit to control it
↑
/ ↓
/ ←
/ →
- arrows to move the unit
SPACE
- place a bomb
Click
a bomb to detonate it
If you got here without any errors - congratulations you're all set up! 🥳
Below are additional tips for developing your agent.
Specify agent-a
and agent-b
in docker-compose.yml to choose which agents to play against each other:
Add a --build
flag in your docker-compose up
command whenever you make a change to the docker-compose.yml
or base-compose.yml
files. i.e.:
docker-compose up --abort-on-container-exit --force-recreate --build
Environment settings such as tick rate, map size, etc can be changed by adding them under environment
in docker-compose.yml:
See ⚙️ Environment Flags for a full list of available settings.
Remember to add the --build
flag!
docker-compose up --abort-on-container-exit --force-recreate --build
On each game tick, your agent will receive a JSON packet containing environment state information, e.g.:
See 🎮 Game State Definitions for a list of all the information available to your agent.
To submit your agent to the tournament server, you will need to push your Docker image to a public registry and upload your link to the Submissions page.
Follow the instructions here for Docker Hub.