diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-28 14:57:41 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-28 14:57:41 +0100 |
commit | dacc05a41b77bf2e86e27ac354db9b047c661a7d (patch) | |
tree | 3d71fa60ff3449f73ec8bb6066ae82733eb46ee4 /planetwars-cli/assets | |
parent | 5ca8dd4c842ee681ce81a6a7bbd5005cd5b98d3c (diff) | |
download | planetwars.dev-dacc05a41b77bf2e86e27ac354db9b047c661a7d.tar.xz planetwars.dev-dacc05a41b77bf2e86e27ac354db9b047c661a7d.zip |
refactor workspace code
Diffstat (limited to 'planetwars-cli/assets')
-rw-r--r-- | planetwars-cli/assets/pw_workspace.toml | 12 | ||||
-rw-r--r-- | planetwars-cli/assets/simplebot/botconfig.toml | 2 | ||||
-rw-r--r-- | planetwars-cli/assets/simplebot/simplebot.py (renamed from planetwars-cli/assets/simplebot.py) | 0 |
3 files changed, 6 insertions, 8 deletions
diff --git a/planetwars-cli/assets/pw_workspace.toml b/planetwars-cli/assets/pw_workspace.toml index 85a4ab6..d82840f 100644 --- a/planetwars-cli/assets/pw_workspace.toml +++ b/planetwars-cli/assets/pw_workspace.toml @@ -1,10 +1,6 @@ -[bots] +[paths] +maps_dir = "maps" +matches_dir = "matches" -# define a bot called simplebot [bots.simplebot] - -# The working directory for the bot. -path = "./bots/simplebot" - -# What command to use for running the bot -argv = ["python", "simplebot.py"]
\ No newline at end of file +path = "bots/simplebot" diff --git a/planetwars-cli/assets/simplebot/botconfig.toml b/planetwars-cli/assets/simplebot/botconfig.toml new file mode 100644 index 0000000..b3a4163 --- /dev/null +++ b/planetwars-cli/assets/simplebot/botconfig.toml @@ -0,0 +1,2 @@ +name = "simplebot" +run_command = "python3 simplebot.py"
\ No newline at end of file diff --git a/planetwars-cli/assets/simplebot.py b/planetwars-cli/assets/simplebot/simplebot.py index b2a6b8f..b2a6b8f 100644 --- a/planetwars-cli/assets/simplebot.py +++ b/planetwars-cli/assets/simplebot/simplebot.py |