$ cnpm install reventlov
Genetically evolve your cellular automata one cell at a time.
This is a partner package to olivaw
var reventlov = require('reventlov')
var automaton = reventlov({
rule: 110,
population: 101,
life: 500,
generation: 20
})
// returns an end rule, or the rule that was completed by the end
var evolution = automaton.evolve()
Create a new instance of reventlov by providing options. All four options are required:
Runs through the specified number of generations and evolves automata as it goes. Returns the last rule that reventlov achieved at the end of the specified number of generations.
npm install reventlov
Copyright 2014 - 2017 © taobao.org |