feat(cellular): playtest fixes - edge, cell count, mixed bubbles, still pools
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 4m24s
Foundation / image (push) Successful in 4m58s

From the first rules-13 playtest:
- An earned offer waits until a single cell can split (keeping its count),
  so choices are no longer refused one after another.
- The client draws the region's walls (dimming outside), names the edge
  when the cell is against it, shows the region's cell count, and says when
  upkeep is burning kept matter because no energy is left.
- Mixed bubbles hold every nutrient at once (--mixed-motes; none leaves the
  scatter stream unchanged) and are drawn as small pools of their nutrients.
  With intake split by the body's recipe, single-nutrient phosphorus
  bubbles fed slowly; mixed ones carry it with everything else.
- Liquid openings move each pool out of the currents to the nearest still
  water (cellular_still_centre).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-26 09:02:43 -04:00
co-authored by Claude Opus 5.5
parent e2da92768c
commit 131ed5f254
14 changed files with 253 additions and 16 deletions
@@ -1,5 +1,6 @@
#pragma once
#include "evo/biology/cellular_habitat.hpp"
#include "evo/biology/cellular_kinematics.hpp"
#include <compare>
@@ -80,4 +81,10 @@ class CellularFlowField {
std::vector<CellularFlowSample> nodes_;
std::size_t columns_{}, rows_{};
};
// A pool (a fixed deposit) cannot sit in a current. The nearest centre to the pool's within the
// region whose whole disc is in still water (no current at its centre, rim or half-rim), or
// the pool's own centre when it already is or none is found within 30 mm.
[[nodiscard]] CellularPatchAddress cellular_still_centre(const CellularFlowField& field,
CellularPatchAddress centre,
std::uint32_t radius_um) noexcept;
} // namespace evo::biology
+4
View File
@@ -113,6 +113,10 @@ struct CellularMoteField {
std::uint64_t source{};
accounting::Inventory amount{}; // Per bubble, per channel.
std::uint64_t seed{};
// Mixed bubbles, each holding all of `mixed` (every nutrient at once), scattered after the
// single-nutrient ones from the same stream. None leaves the stream unchanged.
std::uint32_t mixed_count{};
accounting::Inventory mixed{};
};
// A format-2 habitat of the given pools (centre, radius, source and stock; their ids and kind
// are assigned) and the scattered bubbles, sorted by address with ids 1..n.