« The Subsumption Architecture | Main | Papers of possible interest »

December 02, 2004

Getting started with NetLOGO

This post assumes you were around for the presentation. It's just a few steps that bootstrap us into doing interesting things with NetLOGO.

And that's where I start to run out of steam (or time). In particular, the question is: how can we make a hunter close in on a gatherer? What combination of NetLOGO commands will do the trick?

I can see that distancexy might be useful; however, it could take some doing to figure out how to point ourselves at the nearest gatherer. At this point, however, it might be good to learn the way all great programmers learn:

Read someone else's code

At this point, I'd like to recommend that we take a little time to explore the built-in models library, and then come back to seeing if we can add some things to our model:

  1. Can we make a hunter actually close in on the nearest gatherer?
  2. When the hunter shares a space with a gatherer, can we tell that particular gatherer to die?
  3. Can we give the hunters some kind of energy property, and make each movement cost them some energy? When they run out, they should probably die.
  4. If we're going to take the previous step, then eating should replenish our energy.

Other things that we might do past this point that are more or less complex:

(Note: Upon looking at some of the models, it looks like they typically use random motion of things like our hunters and gatherers. So, we could ignore the notion of tracking...?)

Basically, this is a real-time, evolving dynamical system. As we heard last week, it is very difficult to reason formally about this kind of system; as a result, we have to think about the "world" from the agent's point of view, and then run simulations or (in the case of systems we want to run in the real world) build things and see what happens.

Hopefully, there's enough here to get you started. I personally just like poking around with these things; hopefully, you've enjoyed it a bit as well.

Actually, I think NetLOGO is really cool shit. And I really wish that we had introductory classes in CS that used software like NetLOGO; it is a completely different, but very valuable, paradigm.

Hm. Perhaps there is a way we could work it into our classes...

Posted by mjadud at December 2, 2004 05:50 PM

Comments

I don't have the answer to your question but I appreciate the positive comments about Redcone Robot News in an earlier posting. Thanks

I added your site to my blogroll. I like what you are doing here!!

Posted by: Kevin at December 12, 2004 07:38 AM