int numSeeds = 1; Adam[] adams; Eve[] eves; int eveNum = 1; int adamNum = 1; int eveAgeMax=80; int adamAgeMax=80; int mateChance = 4; float eveDeathChance = 0.1; float adamDeathChance = 0.1; float maxMobility=0.1; float maxMobilityDistance=1; float[][] universe; void setup() { size(640, 480); //noStroke(); frameRate(1); fill(152,166,111); universe = new float[width][height]; for (int i=0; i 3) { pregnant = 0; return 1; } else { pregAge++; return 0; } } void setDeath() { if (age < eveAgeMax) { age++; float d = random(10); if (d < eveDeathChance) {dead=1;} } } int getDeath() { return dead; } }