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.
50 lines
3.0 KiB
Markdown
50 lines
3.0 KiB
Markdown
# 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.
|