SimulatedEnvMixin

class maze.core.env.simulated_env_mixin.SimulatedEnvMixin

Environment interface for simulated environments.

The main addition to StructuredEnv is the clone method, which resets the simulation to the given env state. This interface is used by Monte Carlo Tree Search.

abstract clone_from(env: StructuredEnv) None

Clone an environment by resetting the simulation to its current state.

Parameters:

env – The environment to clone.

deserialize_state(serialized_state: Any) None

Deserialize the current env from the given env state.

serialize_state() Any

Serialize the current env state and return an object that can be used to deserialize the env again. NOTE: The method is optional.