Chessasist Project Story
Inspiration
As a student and a chess player with a rating of 1700 on Chess.com, I understand how difficult it can be to improve at chess. One of the biggest problems I noticed is the lack of a good open-source chess learning program that uses AI to help players improve faster.
There are already many chess platforms available, such as Chess.com, Lichess, and NovaChess.ai. However, each of them has its own strengths and weaknesses.
For example, NovaChess.ai integrates AI very well into its game analysis and player statistics. However, it is not open source and has a restrictive payment model. Its free plan only provides 5 monthly credits, and it does not have puzzles specifically tailored to a player's mistakes.
Chess.com has personalized insights, an extensive opening library, and a large database of games. However, its free plan is restrictive, its personalized coaching is limited, and its puzzles can still feel generic.
Lichess is completely free and open source, with an Opening Explorer containing billions of games. However, its AI coaching and explanations are still limited.
Because of this, I wanted to create something that combines the best parts of these platforms while addressing their weaknesses. This is why I started working on Chessasist, an open-source chess learning web program that integrates AI to make chess improvement more personalized and accessible.
What It Does
The main goal of Chessasist is to help players understand their mistakes instead of simply showing them what moves they should have played.
I want Chessasist to focus on several important features:
1. AI Game Analysis
Analyze a player's games and provide explanations of their mistakes, missed opportunities, and better possible moves. Instead of only showing engine evaluations, the goal is to make the analysis easier to understand.
2. AI Weakness Detection
Analyze a player's game history to identify recurring problems, such as:
- Missing tactical opportunities.
- Poor positional decisions.
- Weak endgame technique.
- Gaps in opening knowledge.
This means that players can focus on the areas where they actually need improvement instead of practicing randomly.
3. Adaptive Puzzle Trainer
Provide puzzles based on the mistakes and weaknesses found in a player's previous games. This makes training more relevant because the puzzles are connected to the player's actual problems.
4. AI-Powered Opening Learner
Use AI together with the Lichess games database to help players study openings, understand common moves, and learn from real games.
5. Interactive AI Chess Coach
Allow players to ask questions and receive explanations about positions, moves, strategies, and other chess-related topics.
How I Approached the Project
I started by looking at the existing chess platforms and identifying what they did well and what they were missing. I compared NovaChess.ai, Chess.com, and Lichess because each platform offers something useful for chess players.
From there, I came up with the idea of combining AI-powered analysis, personalized training, and the open-source approach of Lichess into one platform.
A major part of the concept is using a player's own game history as the foundation for their learning experience. Rather than giving everyone the same puzzles and training recommendations, Chessasist aims to use AI to understand each player's weaknesses and provide more relevant lessons.
I also wanted to make use of the Lichess games database for opening study. This would allow players to learn from a large collection of real games instead of relying only on fixed opening lessons.
Challenges
One of the biggest challenges was getting the AI to respond accurately and preventing it from hallucinating. At the beginning, the AI often gave incorrect or made-up information because it did not have enough context about the chess position or the information it was supposed to analyze.
To solve this, I started giving the AI access to more specific tools and methods, such as inspect_move, evaluate_line, get_tactic_definition, query_database, and lookup_player. These methods allow the AI to retrieve more information and perform specific tasks instead of relying entirely on its own generated responses.
For example, instead of guessing whether a move is good, the AI can use inspect_move or evaluate_line to get more concrete information. It can also query the database or look up player information when needed. This gives the AI more context to work with and helps make its responses more grounded.
Another challenge was deciding which methods to implement and give to the AI. I had to think about what information the AI actually needed, what tasks it should be able to perform, and which methods would be useful for those tasks. Giving the AI more tools is not automatically better. The methods need to have clear purposes, and the AI needs to know when to use them.
What I Hope to Achieve
Through Chessasist, I hope to make chess improvement more accessible to everyone. I believe that learning chess should not require expensive subscriptions or paid coaching just to receive useful feedback.
As a chess player myself, I understand the value of having someone explain your mistakes and guide you toward improvement. I want Chessasist to provide that experience through AI while keeping the platform open source.
Ultimately, my goal is to create a chess learning program where players can analyze their games, understand their weaknesses, practice with personalized puzzles, study openings, and receive guidance from an AI chess coach.
I want Chessasist to make improving at chess easier, more personalized, and accessible to everyone.
Built With
- babel
- chess.com-api
- chess.js
- css-modules
- lichess-api
- react
- react-chessboard
- react-router
- stockfish-wasm
- typescript
- web-workers
- webpack
- zustand