rehab-game
v0.9.1
Published
A serious game developed at CIRAD
Maintainers
Readme
rehab-game
ReHab serious game implemented in JavaScript and released as npm package.
Installation
Run the following instruction in your terminal to install rehab-game into your project.
npm i rehab-gameUsage
import { ReHabModel } from 'rehab-game';
const model = new ReHabModel();model.cells.map((cell) => cell.biomass);const family = model.families[0];
const harvester = family.harvesters[0];
const cell = model.cellAt(0, 2);
harvester.goToCell(cell);model.step();cell.numberOfBirds;
harvester.harvestedBiomass;
family.harvestedBiomass();model.bringAllHarvestersHome();