0.9.1 • Published 12 months ago

rehab-game v0.9.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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-game

Usage

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();
0.9.0

12 months ago

0.9.1

12 months ago

0.8.1

1 year ago

0.8.0

1 year ago