tr_bots: add 13 Nim sample bots as first battle opponents
Wrapper dirs (Name.sh + Name.json) referencing the prebuilt binaries in Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7 read-only, plus MyFirstTeam (team config). All 13 single bots smoke-tested with RawRecord 2 rounds and verified CONTIGUOUS via query.py --verify. See SAMPLE_BOTS.md.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Corners (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Davide Cappellini"],
|
||||
"description": "Moves to a corner, then swings the gun back and forth. If it dies, it tries a new corner in the next round.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["IT"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Corners — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/Corners/Corners"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Crazy (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Davide Cappellini"],
|
||||
"description": "This bot moves around in a crazy pattern.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["IT"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Crazy — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/Crazy/Crazy"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Fire (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Davide Cappellini"],
|
||||
"description": "Sits still, rotates its gun, and fires when it detects an enemy. Moves when hit.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["IT"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Fire — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/Fire/Fire"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "MyFirstBot (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Davide Cappellini"],
|
||||
"description": "Moves in a seesaw pattern and spins the gun around at each end.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["IT"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# MyFirstBot — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/MyFirstBot/MyFirstBot"
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "My First Droid (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": [
|
||||
"Mathew Nelson",
|
||||
"Flemming N. Larsen"
|
||||
],
|
||||
"description": "A droid bot with more energy but no radar. Member of MyFirstTeam. Follows orders from the team leader.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["us", "dk"],
|
||||
"gameTypes": ["classic", "melee"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim",
|
||||
"isDroid": true
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# MyFirstDroid — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/MyFirstDroid/MyFirstDroid"
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "My First Leader (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": [
|
||||
"Mathew Nelson",
|
||||
"Flemming N. Larsen"
|
||||
],
|
||||
"description": "Member of MyFirstTeam. Looks around for enemies and orders teammates to fire.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["us", "dk"],
|
||||
"gameTypes": ["classic", "melee"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# MyFirstLeader — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/MyFirstLeader/MyFirstLeader"
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "MyFirstTeam (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": [
|
||||
"Mathew Nelson",
|
||||
"Flemming N. Larsen"
|
||||
],
|
||||
"description": "A sample team. MyFirstLeader scans for enemies and orders the droids to fire.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["us", "dk"],
|
||||
"teamMembers": [
|
||||
"MyFirstLeader",
|
||||
"MyFirstDroid",
|
||||
"MyFirstDroid",
|
||||
"MyFirstDroid",
|
||||
"MyFirstDroid"
|
||||
],
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "Painting Bot (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Pavel Savara", "Flemming N. Larsen"],
|
||||
"description": "Demonstrates debug graphics by drawing a fading red circle at the last known position of a scanned bot. Enable Graphical Debugging when running a battle.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["cz", "dk"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim",
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# PaintingBot — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/PaintingBot/PaintingBot"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "RamFire (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Mathew Nelson"],
|
||||
"description": "Actively seeks out opponents, rams them, and fires accordingly",
|
||||
"homepage": "",
|
||||
"countryCodes": ["US"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# RamFire — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/RamFire/RamFire"
|
||||
@@ -0,0 +1,49 @@
|
||||
# Sample bots (Nim) — first opponents
|
||||
|
||||
Source (read-only, **not** copied into the repo):
|
||||
`/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/`
|
||||
|
||||
All entries are prebuilt native Nim binaries (`<Name>` + `<Name>.json` + `<Name>.sh`).
|
||||
The wrappers in this directory reference the Downloads binaries by absolute path;
|
||||
the Downloads tree is never modified.
|
||||
|
||||
## Launch method
|
||||
|
||||
The official booter (`tools/booter/robocode-tankroyale-booter-0.35.5-all.jar`) runs
|
||||
`<dir>/<Name>.sh` with cwd = the bot directory and injects `BOT_*` / `SERVER_*`
|
||||
from the sibling `<Name>.json`. Each wrapper follows the existing
|
||||
`tr_bots/DrussGT/` pattern: `cd "$(dirname "$0")"` then `exec <abs-path-to-binary>`.
|
||||
|
||||
Directly via the raw recorder:
|
||||
|
||||
```
|
||||
cd tools/raw_recorder
|
||||
mkdir -p /tmp/rec
|
||||
java -cp "shadow-classes:out:/home/davide/Projects/tank-royale/runner/examples/lib/robocode-tankroyale-runner.jar" \
|
||||
RawRecord --dir /tmp/rec --rounds 2 --bot ../../tr_bots/<A> --bot ../../tr_bots/<B>
|
||||
python3 tools/raw_recorder/query.py /tmp/rec/game-*.battle.gz --verify # expect CONTIGUOUS
|
||||
```
|
||||
|
||||
## Bots
|
||||
|
||||
| Name | Kind | Launch | Smoke test |
|
||||
|---|---|---|---|
|
||||
| Corners | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs SpinBot, CONTIGUOUS) |
|
||||
| Crazy | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| Fire | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs MyFirstLeader, CONTIGUOUS) |
|
||||
| MyFirstBot | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| MyFirstDroid | native Nim binary (team member / droid) | `<Name>.sh` → Downloads binary | WORKS solo (vs Walls, CONTIGUOUS) |
|
||||
| MyFirstLeader | native Nim binary (team leader) | `<Name>.sh` → Downloads binary | WORKS solo (vs Fire, CONTIGUOUS) |
|
||||
| PaintingBot | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| RamFire | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| SpinBot | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Corners, CONTIGUOUS) |
|
||||
| Target | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| TrackFire | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| VelociBot | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Walls, CONTIGUOUS) |
|
||||
| Walls | native Nim binary | `<Name>.sh` → Downloads binary | WORKS (vs Target, CONTIGUOUS) |
|
||||
| MyFirstTeam | **team** config (no binary) | `<Name>.json` with `teamMembers` only; booter resolves members `MyFirstLeader`, `MyFirstDroid` as **sibling** dirs under `tr_bots/` | NOT_A_BOT (team container); members verified individually |
|
||||
|
||||
Smoke tests: 13/13 runnable single bots produced valid, contiguous recordings.
|
||||
Not smoke-tested: `MyFirstTeam` (team, `gameTypes: classic, melee`) — RawRecord only
|
||||
builds a 1v1 `classic` battle, so a 5-member team cannot be exercised there. The
|
||||
team's members are all present as siblings and each was verified solo.
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "SpinBot (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Davide Cappellini"],
|
||||
"description": "Continuously moves in a circle while firing at maximum power when detecting enemies.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["IT"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# SpinBot — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/SpinBot/SpinBot"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Target (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Mathew Nelson"],
|
||||
"description": "A stationary bot that moves when its energy drops below a certain threshold",
|
||||
"homepage": "",
|
||||
"countryCodes": ["US"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Target — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/Target/Target"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "TrackFire (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Mathew Nelson"],
|
||||
"description": "Sits still while tracking and firing at the nearest robot it detects",
|
||||
"homepage": "",
|
||||
"countryCodes": ["US"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# TrackFire — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/TrackFire/TrackFire"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "VelociBot (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Joshua Galecki"],
|
||||
"description": "Example bot demonstrating how to use turn rates",
|
||||
"homepage": "",
|
||||
"countryCodes": ["US"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# VelociBot — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/VelociBot/VelociBot"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Walls (Nim)",
|
||||
"version": "1.0",
|
||||
"authors": ["Davide Cappellini"],
|
||||
"description": "Navigates around the perimeter of the battlefield with gun pointed inward.",
|
||||
"homepage": "",
|
||||
"countryCodes": ["IT"],
|
||||
"gameTypes": ["classic", "melee", "1v1"],
|
||||
"platform": "Nim",
|
||||
"programmingLang": "Nim"
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Walls — prebuilt Nim sample bot (robocode-tankroyale sample-bots-nim-linux-1.0.7)
|
||||
# Referenced read-only; do not edit the Downloads copy.
|
||||
cd "$(dirname "$0")"
|
||||
exec "/home/davide/Downloads/robocode-tankroyale/sample-bots-nim-linux-1.0.7/Walls/Walls"
|
||||
Reference in New Issue
Block a user