Expanded README and renamed Base2DExpEnv to ColumbusEnv
This commit is contained in:
parent
dd8e4aab2c
commit
4338552281
12
README.md
12
README.md
@ -3,3 +3,15 @@
|
||||
Project Columbus is a framework for trivial 2D OpenAI Gym environments that are supposed to test a agents ability to solve tasks that require different forms of exploration effectively and efficiently.
|
||||
|
||||
![Screenshot](./img_README.png)
|
||||
|
||||
### env.py
|
||||
Contains the ColumbusEnv. New envs are implemented by subclassing ColumbusEnv and expanding __init__() and overriding setup().
|
||||
|
||||
### entities.py
|
||||
Contains all implemented entities (e.g. the Agent, Rewards and Enemys)
|
||||
|
||||
### observables.py
|
||||
Contains all 'oberservables'. These are attached to envs to define what kind of output is given to the agent. This way environments can be designed independently from the observation machanism that is used by the agent to play it.
|
||||
|
||||
### humanPlayer.py
|
||||
Allows environments to be played by a human using mouse input.
|
||||
|
2
env.py
2
env.py
@ -8,7 +8,7 @@ import entities
|
||||
import observables
|
||||
|
||||
|
||||
class Base2DExpEnv(gym.Env):
|
||||
class ColumbusEnv(gym.Env):
|
||||
metadata = {'render.modes': ['human']}
|
||||
|
||||
def __init__(self, observable=observables.Observable(), fps=60, env_seed=3.1):
|
||||
|
@ -1,5 +1,5 @@
|
||||
from time import sleep, time
|
||||
from env import Base2DExpEnv
|
||||
from env import ColumbusEnv
|
||||
import numpy as np
|
||||
import pygame
|
||||
|
||||
@ -7,7 +7,7 @@ from observables import Observable, CnnObservable
|
||||
|
||||
|
||||
def main():
|
||||
env = Base2DExpEnv(fps=60, observable=CnnObservable())
|
||||
env = ColumbusEnv(fps=60, observable=CnnObservable())
|
||||
playEnv(env)
|
||||
env.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user