Skip to main content

Farm Valley — Overview

Rendered from corpus/wiki/overview.md · updated 2026-08-18

This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.

A top-down farming sim where a field of AI farmers (each with one of four personalities) plant, harvest, and trade across 100 in-game days. You don't play; you watch them play. The four named archetypes below are the protagonists; the roster scaled to 21 farmers (20 AI + the player Pip) on 2026-06-08 (see world-generation.md) — the extra farmers are archetype clones (Cora-0, Atticus-1, …) on procedurally-generated farm islands.

What this codebase is​

  • A reusable TypeScript game engine (engine/core) — ECS, fixed-step deterministic sim, WebGL2 renderer (2D + 3D), input, animation, spatial index, WASM bindings.
  • Farm Valley (games/farm/client) — the first consumer of that engine. Multi-agent farming sim with BDI agents, message bus, market, weather, auctions.
  • A WASM workspace (engine/wasm-modules) — AssemblyScript source that compiles to .wasm artifacts consumed by the engine.
  • Tools (tools/) — atlas-builder (sprite atlas), run-sim (headless), world-preview (offline snapshot viewer).

Lineage​

Farm Valley is a TypeScript port/extension of a Python SPADE prototype (XMPP + FIPA-ACL + BDI + FSM). The Python codebase is the gameplay spec: agent personalities, the Contract Net Protocol for inter-farmer trade, the day-cycle FSM, the weather/crop/market economy. The TS rewrite ports the agent semantics onto an ECS engine running in the browser.

Who's in it​

FarmerPersonalityStyle
CoraconservativePlays it safe. Steady radish income.
AtticusaggressiveBig swings on diverse crops, accepts losses.
HannahhoarderFat gold reserve; plants only when sure. Runs CNP to buy from peers.
OttoopportunistAdapts to weather and supply on the fly.

Each farmer is a BDI agent (Belief–Desire–Intention) running on an action-point budget per day.

See also​