sarthaktexas / salamandarian

Home Page:https://raw.githubusercontent.com/sarthaktexas/salamandarian/master/salamandarian.js?token=AGXYZ4ESQ4KP5VHKM4YQ2ZC6PZB5W

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

salamandarian

when you do run be sure to follow the following: (you must run each code 20 times to get the needed data)

  • each time change startingValue to the values.length (rolledDice) given in previous month

for example,

//first time
const startingValue = 20;
//second time 
const startingValue = 11;
  • also change the numbers to represent what's actually happening (per simulation)
  • reproduced need not be changed
let results = {
    dead: values.filter(v => v === 1 || v === 2 || v === 4).length,
    reproduced: values.filter(v => v === 2).length,
    alive: values.filter(v => v === 5 || v === 6).length
}