Skip to content

dnlzrgz/knight

Repository files navigation

Knight ♘

This is a simple experiment made with Python that uses Pygame to see the number of moves it takes a knight to get around a chessboard.

Screenshot of WSL window

Installation

Since this is just an experiment the best way to try it is to clone this repository and inside the repository's root folder run:

python knight.py

# or

python3 knight.py

How to use

Click on the desired position to move the knight around the chessboard. If you want a random position, press r or spacebar.

About

An experiment writen in Python to check how many moves a knight needs to get around a chessboard.

Topics

Resources

License

Stars

Watchers

Forks

Languages