Saturday, March 24, 2007

Rabbit Mania

World display

Created a basic rabbit, and changed the display program so that it displays all animals in the grid. The rabbit right now eats it's fill for the day, and then moves to another location in the cell. I discovered that the energy going into the cells was too high. It was supporting over 14 rabbits and there was no degradation of the vitality in the cells. According to a quick estimate I should be supporting maybe 3 rabbits in this amount of area.

So the next step was to half the energy input into the cells. It fell rapidly in less than 2 years it went down to under half of the vitality. I've jumped up the energy to 75% of the original and reduced the rabbits to 5. Total vitality of the cells has slowly grown over 10 years.

I set up a cron job to run a shell script that executes about 1000 days at a time.

Next steps is the tune the energy levels, and make the rabbits more rabbit like.

Labels:

3 Comments:

At 8:42 PM, April 05, 2007 , Anonymous said...

Breed, so you want to play god. Ok I'll describe the world I made.

I created a world where little carnivores wandered looking for the hapless stationary foodstock to eat.

They would live, die, reproduce and only the strongest and their offspring survived.

The catch is: I made them “evolvable”.


On my first attempt, I only had a movement gene. This gene would control probability of how the creature moved. If the creature found food it would gain energy. If a creature did not find food it would lose 1 energy unit . If a creature had enough energy and was old enough it could reproduce and pass its movement genes on to the next generation (with a slight random mutation). If a creature ran out of energy it would die.

This would have the effect of basic evolution. The creatures with good genes for movement would survive and pass on their genes. Weak creatures would die out. Each generation I would allow a small mutation of the gene.

As an example: imagine if a randomly generated creature had a tendacy to always turn right. This creature would spend its life in a little tight circle quickly devouring any food in its small hunting area and eventually die.

A few might have a mostly straight gene with a slight periodic tendacy to make a small turn. These ended up being very strong because they would travel great distance always moving into new food areas.

Most were somewhere in between.

Once I decided to create a “garden of eden” in a small segment of the world where the food was plentiful and re-grew quickly. Well in that location, the tables were reversed. If a tight turner ever managed to get in there. They would always have food and breed other tight turners like crazy. The straight shooters would just zip right past it.


The most interested part is I just created the world and the bugs would evolve depending on how I would change the world. Sometimes I could guess what would happen. Sometime things I never imagined turn out.

Eventually I added genes for reproduction and speed vs energy spent.

Good luck playing God.

 
At 7:34 AM, April 06, 2007 , Breed said...

The goal is to be able to introduce players into the world, but I have to get it large enough and stable enough so that the player impact will not be as noticeable.

 
At 7:50 AM, April 06, 2007 , Anonymous said...

Breed

I forgot to sign the last post.

Luckyjoe is my moniker.

~cya

 

Post a Comment

Links to this post:

Create a Link

<< Home