Skip to content
/ smt-env Public

A package for allowing an arbitrary PyGame (inherting from BaseGame) as an OpenAI Gym Environment

License

Notifications You must be signed in to change notification settings

0xSMT/smt-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMT-Env

A small library for binding arbitrary PyGames to OpenAI Gym. By designing a game that extends the BaseGame class, any given game can utilize OpenAI's interface and resources for easy AI algorithm design and experimental verification.

Installation

First navigate to a proper location to store the cloned repository (deleting the cloned repository will delete the library from your system).

Then execute the following commands:

git clone https://github.com/0xSMT/smt-env.git
cd smt-env
pip3 install -e .

Usage

A Q-Learning example is available in examples/

To create a new simulation, example the example environments in smtenv/envs and note the methods they extend from smtenv.basegame.BaseGame

Updating

To update the library, run the following (in the cloned directory you originally installed into):

git pull
pip3 install -e .

Update the library whenever new changes to the repository occur.

About

A package for allowing an arbitrary PyGame (inherting from BaseGame) as an OpenAI Gym Environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages