Skip to main content

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


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)

Uploaded Source

Built Distribution

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

gym_minesweeper-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for gym-minesweeper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dc98f14de340445bd1f5f73e7fcb240a3291992817dacf3ef7f29eecc9d9817b
MD5 24fae23d1cb3bb01cc90440e9a7569dc
BLAKE2b-256 1b15a5935eeda5acb966303b58ee91ff6d181c8e5797adfb207a0d4382a8df36

See more details on using hashes here.

File details

Details for the file gym_minesweeper-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gym_minesweeper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15bae75b6d7f7bd1d6a7eeb703c0a8a903e6184cdb9df58cdfe1dcb511926065
MD5 00a73842c7401905de569c68b2dd5b78
BLAKE2b-256 8245590822f4b4598b086b4eae160f0b26fa2491d74900e1d8e4d7398d30fc01

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