Spaces:
Sleeping
Sleeping
File size: 925 Bytes
d0ae716 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
"""
Atari Environment for OpenEnv.
This module provides OpenEnv integration for Atari 2600 games via the
Arcade Learning Environment (ALE).
Example:
>>> from envs.atari_env import AtariEnv, AtariAction
>>>
>>> # Connect to a running server or start via Docker
>>> env = AtariEnv.from_docker_image("atari-env:latest")
>>>
>>> # Reset and interact
>>> result = env.reset()
>>> result = env.step(AtariAction(action_id=2)) # UP
>>> print(result.reward, result.done)
>>>
>>> # Cleanup
>>> env.close()
"""
from .client import AtariEnv
from .models import AtariAction, AtariObservation, AtariState
__all__ = ["AtariEnv", "AtariAction", "AtariObservation", "AtariState"]
|