michael1241 / wcc_analysis

39 stars 6 forks source link

wcc_analysis

Lichess page documentation: https://lichess.org/page/world-championships

Each WCC has a study, studies are fetched using: https://lichess.org/api#operation/studyAllChaptersPgn

Source PGNs are found in /analysed_pgns

Analysiscsv.py for extracting analysis and exporting as CSV - sample export is found in analysis.csv

Visualize.py takes in CSV and makes some charts, examples are shown below.

Output 1: Table of games by combined ACPL

Year Game No. White Player Black Player Combined ACPL
2021 7 Nepomniachtchi, Ian Carlsen, Magnus 5.20
2021 3 Nepomniachtchi, Ian Carlsen, Magnus 6.63
1978 15 Kortschnoj, Viktor Karpov, Anatoly 6.67
2021 10 Carlsen, Magnus Nepomniachtchi, Ian 6.68
1987 18 Kasparov, Gary Karpov, Anatoly 6.69
.... .... .... ... ...
1886 11 Zukertort, Johannes Hermann Steinitz, William 153.59
1957 9 Botvinnik, Mikhail Smyslov, Vassily 154.90
1892 19 Chigorin, Mikhail Steinitz, William 167.13
1889 15 Chigorin, Mikhail Steinitz, William 211.98
1892 15 Chigorin, Mikhail Steinitz, William 212.33

Output 2: Some graphs of average combined acpl vs. time

Boxplot2