pacman first install requirements: pip install -r requirements.txt then run: python pacman.py or play yourself: python pacman.py play to run with ghosts: python pacman.py minimax [difficulty:int]