Wire GA generation loop at tick speed #111
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?
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
GA runs synchronously in tickGA() called from onScannedBot. PopSize unified to 64. Background thread removed. Champion hot-swapped on fitness improvement.