Skip to content

Utilities for creating chess-player specific stylometric signatures

Notifications You must be signed in to change notification settings

fmhall/stylochess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chess Stylometry

The purpose of this project is to build analytical tools that enable the creation and comparison of player-specific sytlometric signatures from an arbitrary set of games.

The inspiration of this project was the bullet chess (1 minute per side) match between current world champion Magnus Carlsen (DrNykerstein) vs. the young prodigy Alireza "The Razor" Firouzja. The match took place on April Fool's Day, sparking wild speculation that the players had switched accounts as a joke. The matter could not be settled, however, until now.

More details

Main factor:

  • Opening choice (with descending weight based on move depth)

Secondary factor:

  • Average centipawn loss

Technical flow

  1. User specifies a group of games in PGN format to analyze
  2. The program analyzes each game, and creates tables of openings

Tools

Downloader

Download PGNS from any player from any time period using the downloader. Usage:

In src/chess_stylometry:

python main.py --path-to-pgns "test/hikaru" --download True --player-name hikaru  --pgn-source C --start-year 2014 --end-year 2020

About

Utilities for creating chess-player specific stylometric signatures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages