Fingolfin7 / chess-capture-map

Fetches your games from lichess.org, saves as PGN, renders a heatmap of all your captures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chess-capture-map

Fetches games for any user on Lichess.org Writes to a single PGN file. (this could potentially be huge) Searches all games in the PGN to find the coordinates of each capture. Uses Plotly.Express Heatmap to graph all the captures.

Notes: This was a personal learning project that helped me learn and practice some programming concepts:

  1. Fetching data over the internet using an API.
  2. Searching a large blob of text using Regex.
  3. Refactoring my code into functions in a separate function file.
  4. Writing unit tests using the Unittest module.
  5. Fair amount of list/dict manipulation and iteration.

About

Fetches your games from lichess.org, saves as PGN, renders a heatmap of all your captures.


Languages

Language:Python 100.0%