Requirements:
- Python 3
- OpenAI Gym
- NumPy
Clone this repository and install the other dependencies with pip3
:
git clone https://github.com/mtrazzi/baba-is-gym.git
cd baba-is-gym
pip3 install numpy
pip3 install gym
import gym
import baba-is-gym
env = gym.make('BabaIsGymEnv-v0')
_ = env.reset()
_ = env.step(env.action_space.sample())
For the Reinforcement Learning algorithm, I used an algorithm based on Table Q-learning.
To start the training and visualize the environment, do the following command at the root of the directory:
python3 main.py
MIT