Environment for OpenAI Gym simulating a minesweeper game
Project description
Gym Minesweeper
Gym Minesweeper is an environment for OpenAI Gym simulating a minesweeper game.
Installation
cd gym-minesweeper
pip install -e .
Running
import gym
import gym_minesweeper
env = gym.make("Minesweeper-v0") # 16x16 map with 40 mines
env.reset()
done = False
while not done:
env.render()
action = env.action_space.sample()
obs, reward, done, info = env.step(action)
env.close()
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
gym-minesweeper-0.0.1.tar.gz
(4.3 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 gym-minesweeper-0.0.1.tar.gz.
File metadata
- Download URL: gym-minesweeper-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc98f14de340445bd1f5f73e7fcb240a3291992817dacf3ef7f29eecc9d9817b
|
|
| MD5 |
24fae23d1cb3bb01cc90440e9a7569dc
|
|
| BLAKE2b-256 |
1b15a5935eeda5acb966303b58ee91ff6d181c8e5797adfb207a0d4382a8df36
|
File details
Details for the file gym_minesweeper-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gym_minesweeper-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15bae75b6d7f7bd1d6a7eeb703c0a8a903e6184cdb9df58cdfe1dcb511926065
|
|
| MD5 |
00a73842c7401905de569c68b2dd5b78
|
|
| BLAKE2b-256 |
8245590822f4b4598b086b4eae160f0b26fa2491d74900e1d8e4d7398d30fc01
|