HN user

ThomasCM

100 karma
Posts3
Comments23
View on HN

This is the first large-scale analysis of Grandmaster activity across Chess.com and Lichess from 2008 to 2025, based on years of data collection and millions of games. I explored which platform top chess players prefer and how Chess.com and Lichess have evolved over the years.

All data comes from my project ChessMonitor, which maintains one of the largest chess databases in the world. Feel free to check it out! :)

Chess.com Insights are similar to what my project is doing. However, Lichess has nothing similar. They do have something called "Chess Insights" but it's not really comparable IMHO.

That said, there are also some unique features like "Openings" which allows you to quickly identify your best/worst openings.

I'm aware of Chess960, but this will probably never be supported on ChessMonitor for three reasons: First, Chess960 basically tries to prevent players from preparing (by having a random starting position) which does not align well with providing statistics. Second, it would require major UI and storage changes on ChessMonitor (like adding an option to select the starting position to compare games). And third, Chess960 is simply not as popular amongst non-professional chess players.

There are many similar features. Overall the UI on ChessMonitor is much more focused on statistics.

Another key feature Lichess does not have, is the Openings page. It is very powerful when used correctly. You can look at your openings and immediately see for which openings you might need to consume more theory (or which you should not play at all).

Here is an example: https://www.chessmonitor.com/u/cdPiOkUArRJ7shVNJcT3/openings...

Thanks, I just like it when all state is in the URL and you can just bookmark it. Also using the browser back/forward button should work well thanks to that. I'll check out your library!

My code for that is rather simple. I'm using Next.js and the code looks something like this (a little simplified):

  const router = useRouter(); // get the router/location object
  const information = useFetch({ position: router.query.position }); // fetch information from the server
  
  function changeChessPosition(newPosition) { // called when position changes
      router.replace({ query: { postition: newPosition } }); // replaces the state in the URL
  }
In addition, I have some caching in place so that each position is only downloaded once and the change function looks a little more complicated in my case as there are multiple values that can be change for each page.

Yes, in contrast to storing the board (which can be a fixed size), this depends on the length of the game of course.

That said, there are some optimizations you can apply that will compress moves even further (for example the order of the moves as explained in the Lichess blog post is important). In the end it's a tradeoff between (de)serializing the game fast and reducing the size (even more).

Surprisingly, storing a game (with all moves) can take less space than encoding a single board. This is because you can effectively encode a move in a single byte (as there are less than 255 moves possible in each position). Applying compression to the resulting binary string will allow you to reduce the space even more.

Check out this great blog post of Lichess for more information: https://lichess.org/blog/Wqa7GiAAAOIpBLoY/developer-update-2...

And shameless plug: Using this encoding, I'm storing millions of games on https://www.chessmonitor.com/ There you can link your Chess.com or Lichess account and view all kind of statistics of your games.

Stockfish 14 5 years ago

Thanks for the feedback. It's not really a bug. More of a communication problem... ;)

The openings page list your openings for white and black. If you click on an opening it takes you to the explorer which shows the stats for only one color (white by default). Therefore, if you play an opening for black a lot it will appear in the list of your openings. But when you click on the opening, the explorer will show your stats for white.

There is also another problem, that the detection of openings (on the openings page) respects transpositions [1] while the explorer does not.

Maybe I'll remove the link to the explorer as this seems to cause a lot of confusion...

[1] https://en.wikipedia.org/wiki/Transposition_(chess)

Stockfish 14 5 years ago

As you say, I currently don't. In the future I might check the correlation between chess.com/lichess (when enough users register). Then I should be able to even calculate the chess.com rating from a lichess rating and vice versa.

But there are many other features I want to implement first. I'm currently more focused on the statistics part than on the chess.com/lichess relation.