Giter VIP home page Giter VIP logo

chessevolution's Introduction

Some analysis of Lichess data

I am studying chess. I am reading some books and playing over the board, but most of the time I am playing, solving puzzles and analyzing games on Lichess. At this moment there are more than 8000 games on my history there. I decided to check some things using the Lichess API. Perhaps this code can be useful for you too.

running the code

The code will be always divided into scripts which obtain data from Lichss API (and save it to /data) and scripts to plot different charts. So, if you run player_games_charts.py it will asume that there are .csv files in /data and a player's .json file in /config.
When you run player_games_data.py you need a lichess.json file in /config which contains your api token.

lichess file

{
	"api_client": "berserk-downstream",
	"token": "No, I won't tell you my token.",
	"maxgames": 10000
}

player's file

{
	"name": "Rodrigo Valla",
	"username": "rvalla",
	"start_year": 2021,
	"start_month": 9,
	"start_day": 1,
	"end_year": 2022,
	"end_month": 3,
	"end_day": 1,
	"previous_data" : true
}

standing upon the shoulders of giants

This little project is possible thanks to a lot of work done by others in the open-source community. Particularly in this case I need to mention:

  • Lichess: the best place to learn and play chess.
  • Python: the programming language I used.
  • Berserk: the client I used to comunicate with Lichess API.

Feel free to contact me by mail or reach me in telegram or mastodon.

chessevolution's People

Contributors

rvalla avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

arbitre125

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.