Skip to content

Part of Eloquent JavaScript: A Modern Introduction to Programming book

Notifications You must be signed in to change notification settings

MatheusR42/EletronicLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EletronicLife

Part of Eloquent JavaScript: A Modern Introduction to Programming book

Run on Repl.it

Install lodash dependency

npm install

Run

node EletronicLife

Alt text

Change ecosystem config

You can chage the size of the ecosystem and the quantity of plants, creatures and walls changing the line below:

var valley = new LifelikeWorld(
    createEcosystem(50, 20, {"#": 15, "o": 15, "*": 25}),
    {
        "#": Wall,
        "o": PlantEater,
        "*": Plant
    }
);

About

Part of Eloquent JavaScript: A Modern Introduction to Programming book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published