gameboy_worlds.interface.bomberman.environments

 1from gameboy_worlds.emulation.bomberman.trackers import (
 2    BombermanMaxTracker,
 3    BombermanPocketTracker,
 4    BombermanQuestTracker,
 5)
 6from gameboy_worlds.emulation.emulator import Emulator
 7from gameboy_worlds.interface.environment import DummyEnvironment, TestEnvironmentMixin
 8
 9
10class BombermanMaxEnvironment(DummyEnvironment):
11    REQUIRED_EMULATOR = Emulator
12    REQUIRED_STATE_TRACKER = BombermanMaxTracker
13
14
15class BombermanPocketEnvironment(DummyEnvironment):
16    REQUIRED_EMULATOR = Emulator
17    REQUIRED_STATE_TRACKER = BombermanPocketTracker
18
19
20class BombermanQuestEnvironment(DummyEnvironment):
21    REQUIRED_EMULATOR = Emulator
22    REQUIRED_STATE_TRACKER = BombermanQuestTracker
23
24
25class BombermanMaxTestEnvironment(TestEnvironmentMixin, BombermanMaxEnvironment):
26    pass
27
28
29class BombermanPocketTestEnvironment(TestEnvironmentMixin, BombermanPocketEnvironment):
30    pass
31
32
33class BombermanQuestTestEnvironment(TestEnvironmentMixin, BombermanQuestEnvironment):
34    pass
class BombermanMaxEnvironment(typing.Generic[~ObsType, ~ActType]):
11class BombermanMaxEnvironment(DummyEnvironment):
12    REQUIRED_EMULATOR = Emulator
13    REQUIRED_STATE_TRACKER = BombermanMaxTracker

A dummy environment that does nothing special.

REQUIRED_EMULATOR = <class 'gameboy_worlds.emulation.emulator.Emulator'>

The highest level emulator that the environment can interface with.

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

class BombermanPocketEnvironment(typing.Generic[~ObsType, ~ActType]):
16class BombermanPocketEnvironment(DummyEnvironment):
17    REQUIRED_EMULATOR = Emulator
18    REQUIRED_STATE_TRACKER = BombermanPocketTracker

A dummy environment that does nothing special.

REQUIRED_EMULATOR = <class 'gameboy_worlds.emulation.emulator.Emulator'>

The highest level emulator that the environment can interface with.

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

class BombermanQuestEnvironment(typing.Generic[~ObsType, ~ActType]):
21class BombermanQuestEnvironment(DummyEnvironment):
22    REQUIRED_EMULATOR = Emulator
23    REQUIRED_STATE_TRACKER = BombermanQuestTracker

A dummy environment that does nothing special.

REQUIRED_EMULATOR = <class 'gameboy_worlds.emulation.emulator.Emulator'>

The highest level emulator that the environment can interface with.

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

class BombermanMaxTestEnvironment(typing.Generic[~ObsType, ~ActType]):
26class BombermanMaxTestEnvironment(TestEnvironmentMixin, BombermanMaxEnvironment):
27    pass

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

class BombermanPocketTestEnvironment(typing.Generic[~ObsType, ~ActType]):
30class BombermanPocketTestEnvironment(TestEnvironmentMixin, BombermanPocketEnvironment):
31    pass

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

class BombermanQuestTestEnvironment(typing.Generic[~ObsType, ~ActType]):
34class BombermanQuestTestEnvironment(TestEnvironmentMixin, BombermanQuestEnvironment):
35    pass

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