Wire GA generation loop at tick speed #111

Closed
opened 2026-08-28 23:55:41 +02:00 by SirStone · 1 comment
Owner

Question

Integrate the GA into the tick loop. Each candidate accumulates hit/miss from virtual bullets. After 30 virtual bullets per candidate have all resolved (including in-flight), compute hit% per candidate. Run existing ga.nim selection + mutation to produce next generation. If new champion beats current, hot-swap live gun weights immediately. Reset counters for next generation.

Related map

#108

Blocked by #110

## Question Integrate the GA into the tick loop. Each candidate accumulates hit/miss from virtual bullets. After 30 virtual bullets per candidate have all resolved (including in-flight), compute hit% per candidate. Run existing ga.nim selection + mutation to produce next generation. If new champion beats current, hot-swap live gun weights immediately. Reset counters for next generation. ## Related map #108 Blocked by #110
SirStone added the wayfinder:task label 2026-08-28 23:55:41 +02:00
Author
Owner

GA runs synchronously in tickGA() called from onScannedBot. PopSize unified to 64. Background thread removed. Champion hot-swapped on fitness improvement.

GA runs synchronously in tickGA() called from onScannedBot. PopSize unified to 64. Background thread removed. Champion hot-swapped on fitness improvement.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#111