Class BlackJack¶
Defined in File black_jack_env.h
Inheritance Relationships¶
Base Type¶
public bitrl::envs::gymnasium::ToyTextEnvBase< TimeStep< uint_t >, 48, 2 >(Template Class ToyTextEnvBase)
Class Documentation¶
-
class BlackJack : public bitrl::envs::gymnasium::ToyTextEnvBase<TimeStep<uint_t>, 48, 2>¶
The BlackJack class. Wrapper to the Blackjack OpenAI-Gym environment.
Public Types
-
typedef ToyTextEnvBase<TimeStep<uint_t>, 48, 2>::base_type base_type¶
The base type.
-
typedef base_type::time_step_type time_step_type¶
The time step type we return every time a step in the environment is performed.
-
typedef base_type::state_space_type state_space_type¶
The type describing the state space for the environment.
-
typedef base_type::action_space_type action_space_type¶
The type of the action space for the environment.
Public Functions
-
BlackJack(const RESTApiServerWrapper &api_server)¶
BlackJack. Constructor.
-
BlackJack(const RESTApiServerWrapper &api_server, const uint_t cidx)¶
Constructor.
-
~BlackJack() = default¶
~BlackJack. Destructor
-
virtual void make(const std::string &version, const std::unordered_map<std::string, std::any> &options) final override¶
make. Builds the environment. Optionally we can choose if the environment will be slippery
-
virtual time_step_type step(const action_type &action) final override¶
step
- Parameters:
action –
- Returns:
-
BlackJack make_copy(uint_t cidx) const¶
Create a new copy of the environment with the given copy index.
-
inline bool is_natural() const noexcept¶
-
inline bool is_sab() const noexcept¶
Public Static Attributes
-
static const std::string name = "BlackJack"¶
name
-
static const std::string URI = "/gymnasium/black-jack-env"¶
The URI for accessing the environment.
Protected Functions
-
virtual dynamics_t build_dynamics_from_response_(const nlohmann::json&) const final override¶
build the dynamics from response
-
virtual time_step_type create_time_step_from_response_(const nlohmann::json&) const final override¶
Handle the reset response from the environment server.
-
typedef ToyTextEnvBase<TimeStep<uint_t>, 48, 2>::base_type base_type¶