Sandbox

Overview

All user code is run within a Sandbox environment, of which there is no external access.

See the language documentation for more details on how each language is expected and tested to interface with the game server sandbox.

🎲 Turns

Each turn is run independently from the last.

This means that your code will be compiled just in time before each turn, with no state or static data carried from the previous turn, likely also on a physically different game server.

The only expected input and output is STDIN / STDOUT, used for communication with the game server.

In the future we may provide an API to store/share bot data between turns, however at present no data may be shared between turns.

⏱️ Time Limits

The game server will currently wait a maximum of 20 seconds for a single user to return it’s instructions on STDOUT – If the timeout is reached then the request will be abandoned, and the user bots will be placed into a defend state.

πŸ’Ύ Memory Limits

The game server will currently allow a maximum of 512 Kilobytes to be consumed by the user code within a single turn – If this is exceeded then the request will be immediately abandoned, and the user bots will be placed into a defend state.

πŸ› Debug

On the match page (if you are the bot owner) you will see a button to see bot debug – This page will provide you with the raw input / output for each turn.

❀️ Feedback