
Odor Data Tab
The simulation grid can be used to store and retrieve a single 16-bit value on each (x,y) location. This is what "odor" is. This tab displays the odor map for the grid locations surrounding the cell. It displays what the odor related KFORTH instructions will return.
The center cell in red is the current cell. The surrounding cells are shown.
The instructions SMELL, EXUDE will be using the same information as is displayed in this tab. This tab will help in debugging organisms.
Examples
Here's some KFORTH instructions and what they will return, assuming the data shown above.1 1 SMELL ; returns -42 0 0 SMELL ; returns -42 62 -1 1 EXUDE ; write '62' to grid at the offset (-1, 1) |
More information about SMELL/EXUDE instructions here.