#include <grid_world_env.h>
◆ build_player_mode()
| void bitrl::envs::grid_world::detail::board::build_player_mode |
( |
| ) |
|
◆ build_random_mode()
| void bitrl::envs::grid_world::detail::board::build_random_mode |
( |
| ) |
|
◆ build_static_mode()
| void bitrl::envs::grid_world::detail::board::build_static_mode |
( |
| ) |
|
◆ check_and_move()
| void bitrl::envs::grid_world::detail::board::check_and_move |
( |
int_t | row, |
|
|
int_t | col ) |
check if the given move is valid and change the position of the player if the move either causes the game to be lost (PIT) or is a valid move i.e. not stepping into the WALL or out of the board
◆ close()
| void bitrl::envs::grid_world::detail::board::close |
( |
| ) |
|
◆ get_reward()
| real_t bitrl::envs::grid_world::detail::board::get_reward |
( |
| ) |
const |
Get the reward the board currently returns depending on the position of the player.
◆ get_state()
get_state. Returns the state of the board
- Returns
◆ init_board()
◆ move_piece()
move_piece Move the pice to the given position
- Parameters
-
◆ step()
Execute the action on the board.
◆ validate_move()
validate_move_
- Parameters
-
◆ board_size
| uint_t bitrl::envs::grid_world::detail::board::board_size |
◆ components
◆ generator
| std::mt19937 bitrl::envs::grid_world::detail::board::generator {42} |
◆ is_board_init
| bool bitrl::envs::grid_world::detail::board::is_board_init = {false} |
◆ masks
| std::map<std::string, board_mask> bitrl::envs::grid_world::detail::board::masks |
◆ seed
| uint_t bitrl::envs::grid_world::detail::board::seed = 42 |
The documentation for this struct was generated from the following file: