Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dnlzrgz/knight

An experiment writen in Python to check how many moves a knight needs to get around a chessboard.
https://github.com/dnlzrgz/knight

chess chessboard knight knight-problem knight-shortest-path pygame pygame-gui python python3

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](./assets/screenshot.png)

## 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:
```bash
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`.