Skip to content

BenedictWilkins/vacuumworld-gym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vacuumworld-gym

Vacuum World as a Gym environment

local install:

git clone [email protected]:BenedictWilkinsAI/vacuumworld-gym.git
cd vacuumworld-gym
pip install -e .

use

import random
from vwgym import VacuumWorld, Vectorise


env = VacuumWorld(3)
env = Vectorise(env)
state = env.reset()

for i in range(10):
    action = random.randint(0,env.action_space.n-1)
    state, reward, done, *_ = env.step(action)

About

Vacuum World as a Gym environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages