Built-in problem environment interface.
#define MAX_SIZE
The maximum width/height of a maze.
bool env_maze_is_done(const struct XCSF *xcsf)
Returns whether the maze is in a terminal state.
void env_maze_free(const struct XCSF *xcsf)
Frees the maze environment.
bool env_maze_multistep(const struct XCSF *xcsf)
Returns whether the environment is a multistep problem.
double env_maze_execute(const struct XCSF *xcsf, const int action)
Executes the specified action and returns the payoff.
const double * env_maze_get_state(const struct XCSF *xcsf)
Returns the current animat perceptions in the maze.
void env_maze_init(struct XCSF *xcsf, const char *filename)
Initialises a maze environment from a specified file.
static struct EnvVtbl const env_maze_vtbl
Maze environment implemented functions.
void env_maze_reset(const struct XCSF *xcsf)
Resets the animat to a random empty position in the maze.
double env_maze_maxpayoff(const struct XCSF *xcsf)
Returns the maximum payoff value possible in the maze.
Maze environment data structure.
int xsize
Maze size in x dimension.
int ysize
Maze size in y dimension.
bool done
Whether the maze is in a terminal state.
double * state
Current state.
int xpos
Current x position.
int ypos
Current y position.
char maze[(50)][(50)]
Maze.
Built-in problem environment interface data structure.