planetwars.dev/planetwars-client
2022-11-27 11:26:38 +01:00
..
src client: don't freeze when bot does not produce output 2022-11-27 11:26:38 +01:00
build.rs rename bot_api to client_api 2022-07-25 22:16:50 +02:00
Cargo.toml don't crash client when bot crashes 2022-11-20 11:37:45 +01:00
README.md update README 2022-07-23 00:38:44 +02:00
simplebot.toml add logo and page titles 2022-11-03 21:49:45 +01:00

planetwars-client

planetwars-client can be used to play a match with your bot running on your own machine.

Usage

First, create a config mybot.toml:

# Comand to run when starting the bot.
# Argv style also supported: ["python", "simplebot.py"]
command = "python simplebot.py"

# Directory in which to run the command.
# It is recommended to use an absolute path here.
working_directory = "/home/user/simplebot"

Then play a match: planetwars-client /path/to/mybot.toml opponent_name

Building

  • Obtain rust compiler through https://rustup.rs/ or your package manager
  • Checkout this repository
  • Run cargo install --path . in the planetwars-client directory