A step in the right direction

[Experiments,Research] (10.14.06, 1:51 am)

I have revised the GP code posted previously so that entities can now plant trees. It’s not a lot better than before, but it is still a step in the right direction. A tree will drop some quantity of food after it is planted, but it takes a significant number of turns for it to do so. Furthermore, they are expensive in terms of energy cost to plant. Thus, entities can balance between not planting and saving energy, and planting which will consume energy, but lead to better health in the long term.

After a few minutes of milling about, the entities should reach a stable pattern of planting trees and then looping around to consume the food that the trees drop. If you look at the entity code, you’ll see that Command.2 (the plant tree command) tends to wind up inside of a conditional. This is more or less the behavior I was hoping for, so hooray.

Now it’s just a question of what they can do next.


  1. By the way, Akismet is a great spam plugin created by the same folks that made WordPress. It’s already included with WordPress, you just need to activate it and I think provide an API key which you can get from wordpress.com.

    Comment by Paul Stamatiou — November 21, 2006 @ 4:04 pm

  2. Actually, supposedly I have Akismet running, though I’m not sure if it got accidentally disabled somehow. I was just getting a moderate number of things passing through.

    Comment by ashmore — November 30, 2006 @ 12:01 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.