Skip to main content

Farm Valley

A top-down farming sim where you don't play so much as watch AI farmers play. A field of BDI-driven farmers plant, harvest, fish, forage, and trade across 100 in-game days, chasing gold. You can step in as Pip — but the drama is emergent, not scripted.

21
farmers (20 AI + Pip)
100
in-game days
4
personality archetypes
240²
world tiles
8
crops, radish→grape

The cast​

Four named archetypes are the protagonists, each a distinct deliberation strategy; the rest of the field are archetype clones (Cora-0, Atticus-1, …) on procedurally-generated farm islands.

Cora — conservative

Low risk appetite, steady crop loops. Temperament scalar 0.25.

Atticus — aggressive

Pushes margins, undercuts on the market wall.

Hannah — hoarder

Deep reserves (starts 150 gold / 80 held back).

Otto — opportunist

Chases the richest channel of the moment. Scalar 1.0.

How a farmer thinks​

Each farmer is a Belief–Desire–Intention agent on a daily action-point budget, running a per-tick PERCEIVE → ACT FSM. DeliberateSystem scores every option — farming and non-farm work (fishing, foraging, mining) — in the same gold-per-AP unit, emitting an Intention queue that ActSystem drains. Skill-gated scoring means ~10 of 21 farmers lean non-farm while farming stays the most common #1 choice — diversity without hand-authoring.

The economy in one line

A crop's score is g_c = (2·P_c − S_c) / (G_c + 2) — profit per plot over labour. The market wall is an async peer-to-peer channel with escrowed offers (OFFER_TTL_DAYS = 3) and per-personality price gates. Full math on Patterns and Economy.

Pip, the playable farmer​

Pip is a real farmer entity — same components as the AI — tagged personality.kind: "pip" plus a player component. The only difference: intentions come from the keyboard, not the deliberator. PlayerControlSystem runs before ActSystem; movement is free (not AP-gated), but actions still obey AP, tool, and proximity (Chebyshev ≤1) rules. The whole GUI — inspect card, drag-from-world hotbar, diegetic HUD — renders through the game-agnostic @engine/ui toolkit.

How it runs​

server-side sim   WebSocket transport

Uniquely among the four games, Farm Valley runs its sim server-side in a Node SimHost. The browser client opens a WebSocket, receives one RenderSnapshot per tick, and interpolates between the latest two. Input crosses the socket behind an owner gate — spectators can watch, but can't drive Pip.

note

Deep detail lives in the corpus: Overview, World generation, Player & interaction.