GitHubGet started
More

Farming rules

pkg/farming contains deterministic rules for farming and life-sim projects. Calendar advances through versioned seasons from an explicit duration, rolling to the next season after its configured number of days. CropKind and Crop model staged growth. A crop advances only when WateredDay is called, so an unwatered day cannot silently mature it. Both APIs avoid time.Now, which keeps saves, replays and headless tests reproducible.

Edit this page