Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 545 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 545 Bytes

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.