254c7dc997
- Gun harness: virtual bullet tracker, rolling fitness, auto-selector - Guns: head-on, linear (extrapolation), circular (integrated formula), tsetlin machine (learning) - Movement: phantom meteor gravity engine (danger histograms, phantom bullets, fire detection) - Radar: harness + radar_lock adapter - Color-coded modules: turret/bullet color per gun, body per movement, scan per radar - Beats Target, SpinBot, Crazy, TrackFire in 10-round battles
18 lines
375 B
Nim
18 lines
375 B
Nim
## Minimal ModularBot for testing.
|
|
import std/os
|
|
import robocode_tankroyale_botapi
|
|
|
|
const botJsonPath = currentSourcePath().parentDir / "ModularBot.json"
|
|
|
|
type ModularBot = ref object of Bot
|
|
|
|
method run*(bot: ModularBot) =
|
|
while isRunning():
|
|
setTargetSpeed(0.0)
|
|
setRadarTurnRate(45.0)
|
|
go()
|
|
|
|
when isMainModule:
|
|
var bot = ModularBot()
|
|
start(bot, botJsonPath)
|