The idea is to create a deep q-learning algorithm that can generalize and solve most games in OpenAI's Gym.
-
To run this code first install OpenAI's Gym: https://github.com/openai/gym
-
Download this repo and run
python run_carpole.py
to run the agent (or any other game in this repo, likepython run_lunarlander.py
) and see it improve over time. -
To run a Box2D game like LunarLander you have to install the Box2D Physics engine:
pip install -e '.[box2d]'