// SimpleCbug

                   THE STARTING POINT


This is a simple C program implemented in an extremely simple
ObjectiveC/Swarm file. 

It implements a "bug" taking a random walk. There is no 
"spatial" data-structure in this model in which the "bug" lives. 
The xPos and yPos coordinates take simple random walks, modulo 
maximum X and Y values. Think of the bug taking a random walk
on a torus (enforced by the modulus ("%") operator.)

----------------------------------------------------------------

main.m

The main program uses a helper function, random_move(), which 
returns a random displacement of -1, 0, or 1. 

There is no object-oriented code here - and very little of Swarm.
This is just our starting point to develop the concept of Swarm
as we introduce Object Oriented and Swarm programming a little
bit at a time.


Makefile

  We'll be following the growing complexity of the Makefile along
with this tutorial, so that you can understand how the more
complicated ones get to be that way.

This one is pretty self-explanatory


Running the model.....

  For all the models, just type "make" to build the application, and
then type "bug" to run it.

  Here, the bug will simply wander around for 100 time steps, reporting
its position.


NEXT -> simpleObjCBug



