swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

global variables example


From: Stacy Oerder
Subject: global variables example
Date: Fri, 3 May 2002 14:09:34 +0200

Hi 

I've worked through the examples of the simplebug tutorial and
understand what is happening but now want to manipulate the foodspace
specifically so that I initially fill the world with food of say weight
1, then the bugs eat only half the food at each block whilst the food
grows at a rate of 0.1 per time step. So I created two methods in my
foodspace, one that controls the initial placing of the food and the
second one controls the addition of the food. I'm loading the variables,
i.e. world size etc.., from a file but have noticed that my variables
aren't being read into my foodspace. I've a feeling it has to do with my
foodspace methods which I may have defined wrong according to Swarm code
but cannot determine the error from examples. I am not using a GUI to
represent the outcomes I'm merely writing the observances to the screen.
Does someone perhaps have an example program doing a similar task or
perhaps know of where I can locate a similar example for reference
purposes.

Thanking you in advance.
Stacy Oerder

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]