gameboy_worlds.interface.legend_of_zelda.environments

 1from gameboy_worlds.emulation.legend_of_zelda.trackers import (
 2    CoreLegendOfZeldaTracker,
 3)
 4from gameboy_worlds.interface.environment import (
 5    DummyEnvironment,
 6    TestEnvironmentMixin,
 7)
 8
 9
10class LegendOfZeldaEnvironment(DummyEnvironment):
11    REQUIRED_STATE_TRACKER = CoreLegendOfZeldaTracker
12
13
14class LegendOfZeldaTestEnvironment(TestEnvironmentMixin, LegendOfZeldaEnvironment):
15    pass
class LegendOfZeldaEnvironment(typing.Generic[~ObsType, ~ActType]):
11class LegendOfZeldaEnvironment(DummyEnvironment):
12    REQUIRED_STATE_TRACKER = CoreLegendOfZeldaTracker

A dummy environment that does nothing special.

The state tracker that tracks the minimal state information required for the environment to function.

class LegendOfZeldaTestEnvironment(typing.Generic[~ObsType, ~ActType]):
15class LegendOfZeldaTestEnvironment(TestEnvironmentMixin, LegendOfZeldaEnvironment):
16    pass

Mixin class for testing environments. Ensures the State Tracker used is a TestTrackerMixin and checks these for termination / truncation.