Skip to content

Imports pgn files into a neo4j graph database for analysis.

Notifications You must be signed in to change notification settings

de-husk/pgn-2-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgn-2-graph

Simple tool that transforms pgn files of chess games into a neo4j graph for analysis.

Importing multiple games will append to the existing neo4j chess graph.

Overview

Zoom on a BFS Traversal of a subset of my lichess games BFS traversal Zoomed in

Chess Graph

 (`n`: BoardState {
    moveNumber: n,
    lastMove: "e4",
    fen: "...",
    totalGames: 10,
    whiteWinCnt: 4,
    blackWinCnt: 3
 }) -[:Move {move:["e5"]}]->  (...)

A subset of my games that start with 'e4' Small subset of e4 games

TODO

  • Allow for multiple games to be in a single PGN file
  • Import an entire folder of pgns at once
  • Turn off NingWSClient debug mode that is getting set by the anormcypher library
  • Attach the FEN string to each chess boardstate node

About

Imports pgn files into a neo4j graph database for analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages