Re:Show HN: Noctie – A chess AI that predicts your rating
by lepapillon on Wednesday November 23, 2022 @10:31AM
(#33720408)
I like the board UI and it's a cool project idea. Did you find any good resources on programming the board representation and identifying legal moves? There doesn't seem to be a standard library or algo reference that I've seen for such a common problem.
Re:Show HN: Noctie – A chess AI that predicts your rating
by MereGurudev on Wednesday November 23, 2022 @10:35AM
(#33720459)
Thanks! For board representation and legal move generation I use chess.js in the frontend, and shakmaty in the Rust engine.
Re:Show HN: Noctie – A chess AI that predicts your rating
by sireat on Wednesday November 23, 2022 @11:42AM
(#33721460)
Superb effort!
It was a bit unsettling to play because as a human you were expecting to get crushed any moment but somehow I salvaged a draw on move 116. I've played thousands of games versus computer opponents (and tens of thousands versus humans).
Rating estimates were off by 200 points, probably because I was too cautious. Real FIDE 2300 - estimate 2100. Maybe I am getting too old :)
If the engine really becomes more human like it will be a big step forward.
EDIT: 2nd game (after registering) was broken UI wise - could not move pawns 2 spots and many legal moves were not allowed, so I had to resign
At the core I’m using an AlphaZero / Leela Chess Zero style neural network that I have trained on 1 billion human games from the lichess.org open database. Around this network I have built a chess engine in Rust with algorithms that use the outputs from the NN to produce human-like moves at a given rating from beginner to world champion, as well as predicting the level of the opponents play.
I want to develop this into kind of an AI coach that you can spar certain positions against and get feedback suited for your level. Happy for any suggestions!