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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa465fe70b7016e0ae09b6c52d5ae66b9de1252dab562c109a148638015fe3a5
|
|
| MD5 |
ce5285e7a93ed348e9447577338ab1d2
|
|
| BLAKE2b-256 |
4fe87e160916e7945fdd309de7d257f8fac7cccd8b13d06731753a97005cf94a
|
File details
Details for the file frozenlake_demo-0.0.3-py3-none-any.whl.
File metadata
- Download URL: frozenlake_demo-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce7405853eca25eea33c0afeaf8efa42c2a69f9968e2b57172c01cf3251dedf2
|
|
| MD5 |
62d6f94d0adf281e0ee97ed49e2dbe38
|
|
| BLAKE2b-256 |
a124553a2e14b5f7ce74818b8f26ac9cb6899a0f63f6286c2237a4f94c8f5d5b
|