mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-19 13:32:03 +00:00
88 lines
3.5 KiB
Markdown
88 lines
3.5 KiB
Markdown
---
|
|
title: Chopper Command
|
|
---
|
|
|
|
# Chopper Command
|
|
|
|
```{figure} ../../_static/videos/atari/chopper_command.gif
|
|
:width: 120px
|
|
:name: ChopperCommand
|
|
```
|
|
|
|
This environment is part of the <a href='..'>Atari environments</a>. Please read that page first for general information.
|
|
|
|
| | |
|
|
|-------------------|-------------------------------------------|
|
|
| Action Space | Discrete(18) |
|
|
| Observation Space | (210, 160, 3) |
|
|
| Observation High | 255 |
|
|
| Observation Low | 0 |
|
|
| Import | `gymnasium.make("ALE/ChopperCommand-v5")` |
|
|
|
|
## Description
|
|
|
|
You control a helicopter and must protect truck convoys. To that end, you need to shoot down enemy aircraft.
|
|
A mini-map is displayed at the bottom of the screen.
|
|
Detailed documentation can be found on [the AtariAge page](https://atariage.com/manual_html_page.php?SoftwareID=921).
|
|
|
|
## Actions
|
|
|
|
By default, all actions that can be performed on an Atari 2600 are available in this environment.
|
|
Even if you use v0 or v4 or specify `full_action_space=False` during initialization, all actions
|
|
will be available in the default flavor.
|
|
|
|
## 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]], (210, 160), uint8)
|
|
`
|
|
|
|
respectively. The general article on Atari environments outlines different ways to instantiate corresponding environments
|
|
via `gymnasium.make`.
|
|
|
|
### Rewards
|
|
|
|
You score points by destroying planes and other helicopters. You score extra points at the end of every wave, depending on the number
|
|
of trucks that have survived.
|
|
Detailed documentation can be found on [the AtariAge page](https://atariage.com/manual_html_page.php?SoftwareID=921).
|
|
|
|
## Arguments
|
|
|
|
```python
|
|
env = gymnasium.make("ALE/ChopperCommand-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 |
|
|
|----------------|-------------|--------------------|--------------|
|
|
| ChopperCommand | `[0, 2]` | `[0, 1]` | `0` |
|
|
|
|
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("ChopperCommand-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)
|