v2026.6.1
All Bundles
Bundle Classic AI algorithms: graph search, adversarial game search, optimization and tabular reinforcement learning (-lib ai)

Environment

A tabular RL environment: integer states 0..S-1, integer actions 0..A-1.

Operations

GetNumActions # virtual

Gets the number of actions.

method : public : virtual : GetNumActions() ~ Int

Return

TypeDescription
Intaction count

GetNumStates # virtual

Gets the number of states.

method : public : virtual : GetNumStates() ~ Int

Return

TypeDescription
Intstate count

Reset # virtual

Resets the environment for a new episode.

method : public : virtual : Reset() ~ Int

Return

TypeDescription
Intstarting state

Step # virtual

Takes an action in a state.

method : public : virtual : Step(state:Int, action:Int) ~ System.AI.StepResult

Parameters

NameTypeDescription
stateIntcurrent state
actionIntaction id

Return

TypeDescription
StepResulttransition result