To Run The Simulation Make sure you have python 3 installed make a virtual environment python -m venv env activate the environment . env/bin/activate # Linux/Mac . env/Script/activate # Windows install dependencies pip install -r requirements.txt run it ipython snake_game.py run it in debug mode ipython -i snake_game.py inside the script do: c (continue) or n (next) or step (step) or pp locals() to see all variables c, n, step or pp locals()