Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dnlzrgz/knight
- Owner: dnlzrgz
- License: mit
- Created: 2022-09-17T10:50:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T14:49:53.000Z (about 2 years ago)
- Last Synced: 2023-11-04T18:02:37.450Z (about 1 year ago)
- Topics: chess, chessboard, knight, knight-problem, knight-shortest-path, pygame, pygame-gui, python, python3
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.