Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 846 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 846 Bytes

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