|
|
Animal properties
An animal is a list of instructions (main-memory) and a set of threads each of which run with their own separate state.
The animal has a number of properties some of which can be manipulated by instructions executed in a thread.
- cputime
- How much cputime this animal has available. Each cycle, every animal receives an additional unit of cputime. If this ever runs out, the animal dies.
- gridX/Y
- Each animal is in a certain coordinate in the space. No two animals are at the same location.
- facing
- What direction are they facing.
- age
- How many cycles this animal has lived.
- main memory
- The animals genome.
- threads
- all the threads executing in this animal.
Thread properties
Each thread maintains it's own state. This state is made up of the following information.
- stack
- A stack that the thread can push and pop
- counters
- A list of counters
- short term memory
- values stored by the animal
- execution pointer
- a pointer to the next instruction to execute
- read pointer
- a pointer to the next instruction to copy, also used for division
- write pointer
- a pointer to the next location to write to
- speed
- the number of instructions to execute per loop for this thread
- sleep cycles left
- this number > 0 if this thread is sleeping
|
News 
|