Skip to content

dot-1q/Sokoban-AI

Repository files navigation

Sokoban

Sokoban clone for AI teaching

Demo

How to install

Make sure you are running Python 3.5 or higher

  1. Create a virtual environment (venv)
python3 -m venv venv
  1. Activate the virtual environment (you need to repeat this step, and this step only, every time you start a new terminal/session):
source venv/bin/activate
  1. Install the game requirements:
pip install -r requirements.txt

How to play

AI Solver

Simply run:

chmod +x start.sh
./start.sh

Currently goes to level 135

Important Files

student.py - Responsible for the sending the solution keys to the local server and calling the solving algorithm

solve.py - Where the solution is created. It has all the functions necessary to create the set of keeper movements.

Debug Installation

Make sure pygame is properly installed:

python -m pygame.examples.aliens

Tested on:

  • Ubuntu 20.04 LTS

Credits

Diogo Gomes for the game engine

Kenney for the sprites

About

Sokoban solver using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published