This project is a simulation game for breeding and growing weed. It includes a simulation engine that models plant growth, environmental factors, and costs.
- Node.js (v23 or higher)
- npm
- Clone the repository:
// . .
git clone <repository-url>
- Navigate to the project directory:
// . .
cd weed-breed-js-zwo - Install the dependencies:
// package.json package.json
npm install
To run the main simulation scenario, use the following command:
npm run sim// src/demos/structure_rooms_zones_demo.js src/demos/structure_rooms_zones_demo.js
This will execute the simulation defined in src/index.js.
To start the web server and interact with the simulation through the frontend, use:
npm run dev// src/server/index.js src/server/index.js
The default log level is conservative (warn) to keep the console output tidy.
When you need more insight for debugging, raise the verbosity by setting
LOG_LEVEL:
LOG_LEVEL=debug npm run devThe frontend includes a plant detail view reachable via the structure tree. Navigate to a zone, open its plant list and select a plant to inspect. The view compares current environmental readings with the strain's preferred ranges, highlights stress factors across plants in the zone and lists all plants for quick navigation.
See the consolidated documentation for architecture, data model, frontend and reference guides.
