Breeding: queens with inherited traits, a reserve, and species to discover #11
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/breeding"
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?
Stacked on #10.
Pollen from perfect days now breeds queens, the game's main loop after harvesting.
Domain (Apiary):
BreedingPolicy v1: 15 pollen per breeding, a reserve of at most 6 queens, and Andalusia's wild-drone profile (lavender affinity 8).pure-rand8.4.2, seeded from the breeding's id, so every queen can be replayed. Tests cover reproducibility, bounds, open mutating more than controlled, and the lavender tendency.replaceQueen, which settles the hive under the previous queen first.One aggregate per transaction, chained by the apiary's own events:
BreedQueen→ the keeper pays (BreedingPaid) → the queen is raised → the keeper may discover a species.InstallQueen→ the queen leaves the reserve → the hive takes her (QueenReplaced) → the previous queen returns to the reserve. A starter queen gets an identity of her own the first time.POST /api/apiary/breedingsandPOST /api/apiary/queens/{id}/install(both 202).GET /api/apiarynow includes the reserve and discovered species.queenstable, a hive'squeen_id, a keeper'sdiscovered_species.Web:
Checked:
The demo account was given 75 pollen directly in the dev database.
🤖 Generated with Claude Code