Who slides Wins
Few years ago, I wrote this n-puzzle using pygame for fun. It was inspired from the sliding block puzzle game that I had played as a kid, which had numerals in the front and a picture of taj mahal in the back. The idea was to slide and fit the photo together.
https://github.com/orsenthil/who-slides-wins
How to play
- Human plays first. Use Arrow Keys to Move and Fit the Picture.
- Press Enter when Done.
- Computer Plays and tries to beat you with less moves that you took.
It uses A* with Manhattan Distances to Solve the puzzle.
If you want to try it on your computer.
- Install python2.7
- Create a virtualenv.
- pip install pygame
- clone the git repo.
- python run_game.py
Comments
Comments powered by Disqus