Table of Contents

Class BlackjackEnvOptions

Namespace
Gym.Environments.Envs.ToyText
Assembly
Gym.Environments.dll

The keyword arguments of BlackjackEnv's constructor as a typed record (DR-34), generated from the constructor so it cannot drift from it. A property that is set becomes a keyword argument by its Python name; one left unset is not passed, so make keeps the registered spec's value and the constructor its default.

public sealed record BlackjackEnvOptions : IGymOptions, IEquatable<BlackjackEnvOptions>
Inheritance
BlackjackEnvOptions
Implements
Inherited Members
Extension Methods

Properties

Natural

Gymnasium's natural: a winning natural blackjack pays 1.5 (ignored when Sab is set). The natural keyword argument, passed on only once set.

public bool Natural { get; init; }

Property Value

bool

RenderMode

Gymnasium's render_mode: null, "human" or "rgb_array" (any other mode draws like rgb_array, as in Gymnasium). The render_mode keyword argument, passed on only once set.

public string? RenderMode { get; init; }

Property Value

string

Sab

Gymnasium's sab: Sutton and Barto's rules, where a natural against a dealer without one wins outright. The sab keyword argument, passed on only once set.

public bool Sab { get; init; }

Property Value

bool

ViewerFactory

Gym.NET's viewer_factory (DR-20) for human mode; null uses Gymnasium.HumanViewerFactory. The viewer_factory keyword argument, passed on only once set.

public EnvViewerFactory? ViewerFactory { get; init; }

Property Value

EnvViewerFactory

Methods

ToKwargs()

The set properties as keyword arguments by Python name, in constructor order.

public Info ToKwargs()

Returns

Info

A new dict the caller owns.