Skip to content

Sebastien32/wcc_analysis

 
 

Repository files navigation

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

Analysis.py for extracting analysis and exporting as JSON - sample export is found in analysis.json

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 3 Nepomniachtchi, Ian Carlsen, Magnus 6.625000
1978 15 Kortschnoj, Viktor Karpov, Anatoly 6.666667
1987 18 Kasparov, Gary Karpov, Anatoly 6.687179
1972 16 Fischer, Robert James Spassky, Boris V 6.858757
2014 9 Carlsen, Magnus Anand, Viswanathan 6.947368
.... .... .... ... ...
1886 11 Zukertort, Johannes Hermann Steinitz, William 153.589744
1957 9 Botvinnik, Mikhail Smyslov, Vassily 154.896159
1892 19 Chigorin, Mikhail Steinitz, William 167.129032
1889 15 Chigorin, Mikhail Steinitz, William 211.977778
1892 15 Chigorin, Mikhail Steinitz, William 212.326087

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

Barplot Boxenplot Boxplot Stripplot Violinplot Scatterplot Regplot Lmplot

Output 3: All games by ACPL vs. num moves

Note some games are off the table in both x and y axes. Gamelengthplot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%