Coder Social home page Coder Social logo

abhinav7sinha / python-chessnet Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 76 KB

Model the game of chess as a large complex network

License: Apache License 2.0

Python 10.76% Jupyter Notebook 89.24%
chess network-science graphml pgn pgn-to-gml networkx python-chess

python-chessnet's Introduction

python-chessnet

Model the game of chess as a large complex network

  1. Introduction
  2. Dependencies
  3. Features

1. Introduction

python-chess-network is a library for the study of the game of chess as a large complex network.

2. Dependencies

3. Features

  • provides a utility to generate a graph (unweighted and directed) from a PGN file containing games of chess
    • individual board positions represented by FENs are nodes in the graph
    • a move in the game is represented by a directed edge between 2 nodes.
    import gml # assumes you have gml.py in the same directory, or you know how to handle python modules.
    
    input_pgn_file='pgn-base/carlsen-caruana-2018.pgn'
    gmlCoverter=gml.GraphMLUtil()
    
    # generate graph object from pgn file
    diGraph=gmlCoverter.generateGamesNetwork(input_pgn_file)
    
    # generate graphml file from the graph object
    # (if no destination is provided - file is stored in gml-base directory 
    # with default file name)
    dest='gml-base/test-output.gml'
    gmlCoverter.generateGameGml(diGraph, dest)

python-chessnet's People

Contributors

abhinav7sinha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

python-chessnet's Issues

Improve readme

Add documentation and improve readme -

  • How to contribute section
  • Add shields/badges in GitHub readme

Implement CI pipeline

  • Review existing CI tools
  • Set up CI to run automated tests against builds
  • Set up code merge rules

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.