Remove all per-enemy weight logic from persistence: per-opponent file resolution, the per-opponent → global → random-init load cascade. Keep only global file path resolution, parameterized by gun name (global_ga.weights, global_cma.weights). Update save/load to work with gun-keyed global files only. Strip per-opponent references from gun and bot modules.
Acceptance criteria
Per-opponent weight file resolution and load cascade are removed
saveChampionIfBetter and loadWeightsF accept a gun name and operate on global_<name>.weights
No per-opponent references remain in gun.nim, EvoBot.nim, or persistence.nim
Existing bot compiles and runs with global-only persistence
Self-check / test verifies save-then-load round-trips correctly for a gun-keyed global file
Blocked by
None — can start immediately.
## Parent
#99
## What to build
part-of: #99
Remove all per-enemy weight logic from persistence: per-opponent file resolution, the per-opponent → global → random-init load cascade. Keep only global file path resolution, parameterized by gun name (`global_ga.weights`, `global_cma.weights`). Update save/load to work with gun-keyed global files only. Strip per-opponent references from gun and bot modules.
## Acceptance criteria
- [ ] Per-opponent weight file resolution and load cascade are removed
- [ ] `saveChampionIfBetter` and `loadWeightsF` accept a gun name and operate on `global_<name>.weights`
- [ ] No per-opponent references remain in gun.nim, EvoBot.nim, or persistence.nim
- [ ] Existing bot compiles and runs with global-only persistence
- [ ] Self-check / test verifies save-then-load round-trips correctly for a gun-keyed global file
## Blocked by
None — can start immediately.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent
#99
What to build
part-of: #99
Remove all per-enemy weight logic from persistence: per-opponent file resolution, the per-opponent → global → random-init load cascade. Keep only global file path resolution, parameterized by gun name (
global_ga.weights,global_cma.weights). Update save/load to work with gun-keyed global files only. Strip per-opponent references from gun and bot modules.Acceptance criteria
saveChampionIfBetterandloadWeightsFaccept a gun name and operate onglobal_<name>.weightsBlocked by
None — can start immediately.