The environment is a simple 2-dimensional grid as before. This is realized in the file
czs2_environment (cf. 16.1). After loading this file into the scilab console
one can define a variable with a predefined test grid
from the environment file:
--> GRID=GD3O2F1 GRID = !. . . ! !O O . ! !. F . !
The environment file allows much more types of environments. But for the discussion here it is
sufficient
to use such a simple grid with
many cells filled with two objects (O) and one
food (F).
A position (POS) in the grid is given by an x and y coordinate as designating
the
field with the food. A property (PROP) is given as an attribute associated with a position
in the grid. In the example we have the property food (F) attached to the position
. The environment then is a collection of such positions with possible
attributes; other attributes than food are object (O) as well as empty space
('.').
Gerd Doeben-Henisch 2012-03-31