AIToolbox
A library that offers tools for AI problem solving.
GridWorld.hpp File Reference
#include <cstddef>
#include <array>

Go to the source code of this file.

Classes

class  AIToolbox::MDP::GridWorld
 This class represents a simple rectangular gridworld. More...
 
struct  AIToolbox::MDP::GridWorld::State
 

Namespaces

 AIToolbox
 
 AIToolbox::MDP
 
 AIToolbox::MDP::GridWorldUtils
 This namespace exists in order to allow referencing the Direction values directly.
 

Enumerations

enum  AIToolbox::MDP::GridWorldUtils::Direction : size_t {
  AIToolbox::MDP::GridWorldUtils::UP = 0, AIToolbox::MDP::GridWorldUtils::RIGHT = 1, AIToolbox::MDP::GridWorldUtils::DOWN = 2, AIToolbox::MDP::GridWorldUtils::LEFT = 3,
  AIToolbox::MDP::GridWorldUtils::UP_RIGHT = 4, AIToolbox::MDP::GridWorldUtils::UP_LEFT = 5, AIToolbox::MDP::GridWorldUtils::DOWN_RIGHT = 6, AIToolbox::MDP::GridWorldUtils::DOWN_LEFT = 7
}
 The possible actions in a GridWorld-like environment. More...
 

Variables

static constexpr std::array< Direction, 4 > AIToolbox::MDP::GridWorldUtils::Directions4 {{UP, RIGHT, DOWN, LEFT}}
 
static constexpr std::array< Direction, 8 > AIToolbox::MDP::GridWorldUtils::Directions8 {{UP, RIGHT, DOWN, LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT, DOWN_LEFT}}