Vacuum cleaner
Install
It should be in Python 3. Please try pip3
if pip
does not work.
On Ubuntu you can make a virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt # Install gym and euclid3
Anywhere:
pip install gym euclid3
python start.py # To test the Gym environment
python bounce.py # Press A to randomly change the direction of the ball
Useful resources
Rendering involves either:
-
reimplementing PolyLine etc. with pyglet, see rendering.py
-
or OpenAI's Box2D fork, see car_racing.py
-
Documentation of pyglet involving Graphics
-
To make a circle you can also use OpenGL's gluDisk
Inspired by bounce.py (come on, why did they use euclid3 instead of numpy?!)