bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bitrl::envs::grid_world::detail Namespace Reference

Classes

struct  board
 
struct  board_piece
 The BoardPiece struct. More...
 
struct  GridWorldEnv
 
struct  not_equal
 

Typedefs

typedef std::pair< int, int > board_position
 Models a position on the board.
 
typedef std::vector< std::vector< std::vector< real_t > > > board_state_type
 Array specifying the state of the board.
 
using board_mask = board_piece
 

Enumerations

enum  board_component_type { PLAYER = 0 , GOAL = 1 , PIT = 2 , WALL = 3 }
 The BoardComponentType enum. More...
 
enum  board_move_type { VALID = 0 , INVALID = 1 , LOST_GAME = 2 }
 The MoveType enum. More...
 

Functions

bool validate_board (const board &b)
 
bool operator== (const board_position &p1, const board_position &p2)
 Test if two positions are equal.
 
bool operator!= (const board_position &p1, const board_position &p2)
 Test if two positions are equal.
 
board_position operator+ (const board_position &p1, const board_position &p2)
 Add two positions and return their result.
 
int_t max (const board_position &p)
 Returns the max component of a position.
 
int_t min (const board_position &p)
 Returns the min component of a position.
 

Typedef Documentation

◆ board_mask

◆ board_position

Models a position on the board.

◆ board_state_type

typedef std::vector<std::vector<std::vector<real_t> > > bitrl::envs::grid_world::detail::board_state_type

Array specifying the state of the board.

Enumeration Type Documentation

◆ board_component_type

The BoardComponentType enum.

Enumerator
PLAYER 
GOAL 
PIT 
WALL 

◆ board_move_type

The MoveType enum.

Enumerator
VALID 
INVALID 
LOST_GAME 

Function Documentation

◆ max()

int_t bitrl::envs::grid_world::detail::max ( const board_position p)

Returns the max component of a position.

◆ min()

int_t bitrl::envs::grid_world::detail::min ( const board_position p)

Returns the min component of a position.

◆ operator!=()

bool bitrl::envs::grid_world::detail::operator!= ( const board_position p1,
const board_position p2 
)

Test if two positions are equal.

◆ operator+()

board_position bitrl::envs::grid_world::detail::operator+ ( const board_position p1,
const board_position p2 
)

Add two positions and return their result.

◆ operator==()

bool bitrl::envs::grid_world::detail::operator== ( const board_position p1,
const board_position p2 
)

Test if two positions are equal.

◆ validate_board()

bool bitrl::envs::grid_world::detail::validate_board ( const board b)