Skip to content

A simple laser-hockey gym environment for RL agents

License

Notifications You must be signed in to change notification settings

anticdimi/laser-hockey-env

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laser-hockey-env

This repository is a fork from https://github.com/martius-lab/laser-hockey-env and contains two version of a hockey-like game.

Install

python3 -m pip install git+https://github.com/antic11d/laser-hockey-env.git

or add the following line to your Pipfile

laserhockey = {editable = true, git = "https://github.com/antic11d/laser-hockey-env.git"}

HockeyEnv

Screenshot

laserhockey.hockey_env.HockeyEnv

A two-player (one per team) hockey environment. For our Reinforcment Learning Lecture @ Uni-Tuebingen. See Hockey-Env.ipynb notebook on how to run the environment.

The environment can be generated directly as an object or via the gym registry:

env = gym.envs.make("Hockey-v0")

There is also a version against the basic opponent (with options)

env = gym.envs.make("Hockey-One-v0", mode=0, weak_opponent=True)

LaserHockeyEnv

A laser-hockey game implementation within openAI gym using the Box2D engine. It is quite a challenging environment See Laser-Hockey-Env.ipynb notebook on how to run the environment.

About

A simple laser-hockey gym environment for RL agents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 61.9%
  • Jupyter Notebook 38.1%