Skip to content

[M3] Plant state machine #3

Description

@rwrife

The brain: turn activity (+ remembered state) into a plant state. Pure, no I/O.

Checklist

  • internal/plant maps Activity -> growth stage: seed -> sprout -> leafy -> tall -> bloom
  • Health modifier: healthy / thirsty / wilting based on days since last commit
  • Mood/flavor text per state (short, with personality)
  • Deterministic + pure: same inputs -> same PlantState
  • Thresholds documented and easy to tune in one place
  • Thorough unit tests covering stage transitions and wilt edges

Done when

plant.Compute(activity, state) yields the right stage/health across a table of test cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    milestoneShippable milestone

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions