Skip to main content

A minimal FrozenLake environment with custom BaseEnv

Project description

FrozenLake Demo

A minimal, clean implementation of the FrozenLake environment, inspired by Gymnasium.

Installation

You can install this package locally using pip:

pip install -e .

Usage

import gymnasium as gym
from frozenlake_demo import FrozenLakeEnv

# Initialize environment
env = FrozenLakeEnv(render_mode="human")
obs, info = env.reset(seed=42)

# Run a simple loop
for _ in range(10):
    action = env.action_space.sample()  # Random action
    obs, reward, terminated, truncated, info = env.step(action)
    
    if terminated or truncated:
        obs, info = env.reset()

env.close()

Environment Details

  • Action Space: Discrete(4) (Left=0, Down=1, Right=2, Up=3)
  • Observation Space: Discrete(16) (Grid index 0-15)
  • Map: 4x4 Grid with Start(S), Frozen(F), Hole(H), and Goal(G).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frozenlake_demo-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frozenlake_demo-0.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file frozenlake_demo-0.0.3.tar.gz.

File metadata

  • Download URL: frozenlake_demo-0.0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for frozenlake_demo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fa465fe70b7016e0ae09b6c52d5ae66b9de1252dab562c109a148638015fe3a5
MD5 ce5285e7a93ed348e9447577338ab1d2
BLAKE2b-256 4fe87e160916e7945fdd309de7d257f8fac7cccd8b13d06731753a97005cf94a

See more details on using hashes here.

File details

Details for the file frozenlake_demo-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for frozenlake_demo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce7405853eca25eea33c0afeaf8efa42c2a69f9968e2b57172c01cf3251dedf2
MD5 62d6f94d0adf281e0ee97ed49e2dbe38
BLAKE2b-256 a124553a2e14b5f7ce74818b8f26ac9cb6899a0f63f6286c2237a4f94c8f5d5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page