Gymnasium grid environment with random tokens
Project description
token-env
This repo implements a single agent Gymnasium environment with tokens.
Installation
pip install token-env
Usage
import token_env
import gymnasium as gym
if __name__ == '__main__':
env = gym.make("TokenEnv-v0")
obs, info = env.reset()
done = False
i = 0
while not done:
i += 1
action = env.action_space.sample()
obs, reward, terminated, truncated, info = env.step(action)
done = terminated or truncated
env.close()
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
token_env-0.2.3.tar.gz
(8.6 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 token_env-0.2.3.tar.gz.
File metadata
- Download URL: token_env-0.2.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65ef6fe5f221e7d49b1223ef888bc604b1e7695a2921d4d4dd57c953ed01f095
|
|
| MD5 |
f96f76d2375e96426b03085e242d0e18
|
|
| BLAKE2b-256 |
c183cd88d3f6f1d2a728d96cea3eb6a0777e2d89d144547948a8ef20e5ba16e7
|
File details
Details for the file token_env-0.2.3-py3-none-any.whl.
File metadata
- Download URL: token_env-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
003d8bd622ebc05392b6e788cbe80b0b1e45ce53b3a67b4f68b1f1db982b91e9
|
|
| MD5 |
e0fb00e7db08d32d09e980d9a52fa7b4
|
|
| BLAKE2b-256 |
8e72567240dc979f70ae113745ca36311aec02b6d70655a0a49945fa53feca71
|