TOPO_Gun with GF targeting #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#80
What to build
Wire ANN, GA, sliding window, replay tape, and normalization into a working gun module that replaces head-on firing with guess-factor targeting.
Gun interface:
feed(state)/aim() → (angle, power).Power formula:
power = clamp(3.0 - (distance - 150) / 400, 0.5, 3.0)— applied first.Aiming:
bullet_speed = 20 - 3 × power,MEA = arcsin(8.0 / bullet_speed),aim_angle = bearing_to_enemy + gf × MEA.GA runs on a parallel thread, evolving against the replay tape. Champion is pushed to inference when it beats current. Evolution never blocks the tick loop.
First adaptive shot: bot fires aimed bullets at OscillatorBot using ANN-predicted guess factors.
Acceptance criteria
feed(state)/aim() → (angle, power)interfacewhen isMainModulewithdoAssertvalidates distance→power mappingBlocked by