Simple Object Model - Bottom up Cell Life Demo
- The system is slightly interesting. You can monitor the balance with the number of live cells.
You may notice a shift in mutations as cells grow away from the center.
- With only a few mutations, the color of cells tend to shift in color over time.
- It takes many iterations for emergent behavior to emerge.
- Code wise not really that interesting but already we can visualize the emergent behavior.
- Cheating to make the simulation feasible
Code
Resources
http://code.google.com/p/ainotebook/downloads/list
keywords - ai,intelligence, emergent behavior, evolution, evolution theory, cells, gameoflife, cells, bacteria, dna.
You may notice a shift in mutations as cells grow away from the center.
- With only a few mutations, the color of cells tend to shift in color over time.
- It takes many iterations for emergent behavior to emerge.
- Code wise not really that interesting but already we can visualize the emergent behavior.
- Cheating to make the simulation feasible
Code
trait LivingEntityCell {
def getName : String
def getDNA : DNA
def alive : Boolean
def processDNA() : Unit
def produceProteins() : Unit
def onStepSimulationProcessCell() : Unit
def getMutableSize : Int
def setImmutableSystemTraits : Unit
def onStepSetSystemTraits : Unit
/**
* Metabolic reaction and process to convert energy.
* In our system, amount of energy for this cell.
*/
def getCellularRespirationEnergyLevel : Double
def hasConsumeForReplication : Boolean
/**
* If child available, consume and add to core list.
*/
def consumeChildCellReplication : LivingEntityCell
def onInitializeReplicate(cell:LivingEntityCell) : Unit
def mutateDNAOnReplication(targetCell:LivingEntityCell) : DNA
}
Resources
http://code.google.com/p/ainotebook/downloads/list
keywords - ai,intelligence, emergent behavior, evolution, evolution theory, cells, gameoflife, cells, bacteria, dna.
Comments
Post a Comment