$ git clone https://github.com/DataRohit/AI-Snake-Game.git
$ python -m venv venv
$ source venv/Scripts/activate
$ pip install -r requirements.txt
Step 3: Run the Code in Jupyter Notebook and you will see the output. It takes around 10 - 15 minutes for the agent to get better at game.
Credits freecodecamp