Save and load champion weights so rematches start warm. Per-opponent weights keyed by enemy bot name (~6KB each, 745 floats). Global fallback file overwritten with latest match champion after every match.
Load order at bot startup: per-opponent → global fallback → random init.
Hybrid population seeding from loaded weights: ~25% of population initialized as mutated clones of loaded champion (exploitation), ~75% random (exploration).
Acceptance criteria
Champion weights saved per-opponent after each match, keyed by bot name
Global fallback weights overwritten with latest champion after every match
Load order: per-opponent → global fallback → random init
Hybrid seeding: ~25% cloned+mutated from loaded champion, ~75% random
Rematch against same opponent starts from saved weights — no re-evolution from scratch
Self-check: when isMainModule with doAssert validates save/load roundtrip (write + read back = identical weights)
## Parent
https://git.fossellini.top/SirStone/SirRoboGarage/issues/80
## What to build
Save and load champion weights so rematches start warm. Per-opponent weights keyed by enemy bot name (~6KB each, 745 floats). Global fallback file overwritten with latest match champion after every match.
Load order at bot startup: per-opponent → global fallback → random init.
Hybrid population seeding from loaded weights: ~25% of population initialized as mutated clones of loaded champion (exploitation), ~75% random (exploration).
## Acceptance criteria
- [ ] Champion weights saved per-opponent after each match, keyed by bot name
- [ ] Global fallback weights overwritten with latest champion after every match
- [ ] Load order: per-opponent → global fallback → random init
- [ ] Hybrid seeding: ~25% cloned+mutated from loaded champion, ~75% random
- [ ] Rematch against same opponent starts from saved weights — no re-evolution from scratch
- [ ] Self-check: `when isMainModule` with `doAssert` validates save/load roundtrip (write + read back = identical weights)
## Blocked by
- https://git.fossellini.top/SirStone/SirRoboGarage/issues/84
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
#80
What to build
Save and load champion weights so rematches start warm. Per-opponent weights keyed by enemy bot name (~6KB each, 745 floats). Global fallback file overwritten with latest match champion after every match.
Load order at bot startup: per-opponent → global fallback → random init.
Hybrid population seeding from loaded weights: ~25% of population initialized as mutated clones of loaded champion (exploitation), ~75% random (exploration).
Acceptance criteria
when isMainModulewithdoAssertvalidates save/load roundtrip (write + read back = identical weights)Blocked by