Elevator Action#
This environment is part of the Atari environments. Please read that page first for general information.
Action Space |
Discrete(18) |
Observation Space |
(250, 160, 3) |
Observation High |
255 |
Observation Low |
0 |
Import |
|
Description#
You are a secret agent that must retrieve some secret documents and reach the ground level of a building by going down an elevator/stairs. Once you reach the ground level, you are picked up and taken to the next level. You are equipped with a gun to defend yourself against enemy agents waiting for you in each floor. You gather points by shooting down enemy agents and visiting apartments marked with a red door, which contain the secret documents.
This is an unreleased prototype based on the arcade game. Limited documentation can be found on the AtariAge page.
Actions#
By default, all actions that can be performed on an Atari 2600 are available in this environment.
However, if you use v0 or v4 or specify full_action_space=False
during initialization, only a reduced
number of actions (those that are meaningful in this game) are available. The reduced action space may depend
on the flavor of the environment (the combination of mode
and difficulty
). The reduced action space for the default
flavor looks like this:
Num |
Action |
---|---|
0 |
NOOP |
1 |
UP |
2 |
RIGHT |
3 |
LEFT |
4 |
DOWN |
5 |
UPRIGHT |
6 |
UPLEFT |
7 |
DOWNRIGHT |
8 |
DOWNLEFT |
Observations#
By default, the environment returns the RGB image that is displayed to human players as an observation. However, it is possible to observe
The 128 Bytes of RAM of the console
A grayscale image
instead. The respective observation spaces are
Box([0 ... 0], [255 ... 255], (128,), uint8)
Box([[0 ... 0] ... [0 ... 0]], [[255 ... 255] ... [255 ... 255]], (250, 160), uint8)
respectively. The general article on Atari environments outlines different ways to instantiate corresponding environments
via gymnasium.make
.
Rewards#
You start with 4 lives and are awarded 100 points for each enemy shot, and 500 points for each secret document collected (visiting a red door). Each time you get shot you lose one life and the game ends when losing all lives.
Arguments#
env = gymnasium.make("ALE/ElevatorAction-v5")
The various ways to configure the environment are described in detail in the article on Atari environments.
It is possible to specify various flavors of the environment via the keyword arguments difficulty
and mode
.
A flavor is a combination of a game mode and a difficulty setting.
Environment |
Valid Modes |
Valid Difficulties |
Default Mode |
---|---|---|---|
ElevatorAction |
|
|
|
You may use the suffix “-ram” to switch to the RAM observation space. In v0 and v4, the suffixes “Deterministic” and “Noframeskip”
are available. These are no longer supported in v5. In order to obtain equivalent behavior, pass keyword arguments to gymnasium.make
as outlined in
the general article on Atari environments.
The versions v0 and v4 are not contained in the “ALE” namespace. I.e. they are instantiated via gymnasium.make("ElevatorAction-v0")
.
Version History#
A thorough discussion of the intricate differences between the versions and configurations can be found in the general article on Atari environments.
v5: Stickiness was added back and stochastic frameskipping was removed. The entire action space is used by default. The environments are now in the “ALE” namespace.
v4: Stickiness of actions was removed
v0: Initial versions release (1.0.0)