Skip to content

An OpenAI gym environment for the Mastermind game

Notifications You must be signed in to change notification settings

jefio/gym-mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

gym-mastermind

An OpenAI gym environment for the Mastermind game.

Installation

cd gym-mastermind
pip install -e .

Example

import logging
logging.basicConfig(level=logging.DEBUG)

import gym_mastermind
import gym
env = gym.make('Mastermind-v0')

s = env.reset()
done = False
while not done:
    action = env.action_space.sample()
    s, r, done, _ = env.step(action)
    print(action, s, r)

About

An OpenAI gym environment for the Mastermind game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages