r/ComputerChess • • Apr 01 '26

Chal v1.4.0 ~2650ELO under 1k lines of C

9 Upvotes

Chal v1.4.0 is now ~2650ELO under 1k lines of C

A few weeks ago I posted about Chal hitting ~2400 Elo in v1.3.2. I've just released v1.4.0, and this one's a bit of a different story to tell.

The gains this time came entirely from search stack rewrite and speed optimizations, no new eval terms, just making the existing code faster.

The fun part: Fruit 2.1 is ~8,000 lines of C++. Chal is under 1,000 lines of C99.

The less fun part: I think I've hit a ceiling. The architecture is intentionally simple and readable, which is great for a learning project but there's only so much you can optimize before the design itself becomes the bottleneck. I've largely run out of easy wins.

It's a weird feeling and part disappointment at hitting the wall sooner than I'd hoped, part satisfaction that a sub-1k line purely HCE engine got this far at all. The whole point was never raw strength, it was to see how much you could do with as little code as possible while keeping everything readable.

Repo: https://github.com/namanthanki/chal


r/ComputerChess • • Mar 26 '26

PGN Movie Maker - Feature Request Thread

Post image
9 Upvotes

Happy Thursday r/ComputerChess

For the past two years I've been working on an automated video pipeline that transforms PGN files into long form video content (Python).

The goal has been to automate one of my favorite niche chess channels which disappeared from YouTube in 2022. Sleepy Time Chess (https://youtube.com/@sleepytimechess) is a channel for visual chess learners featuring high quality classical chess games set to relaxing ambient music. My fascination with this concept started when I was bed bound for several months with complications related to COVID.

All that said, I'm posting here because I'd like to know if there are any features people would like to see in my next big pull request. The last round of feature updates included:

- A point of view algorithm so the board flips to the correct side for player specific playlists;

- A massive series of pipeline improvements (API development, web app UI, YT upload integration);

- Bug fixes related to Black's POV (big shout-out to JeffML of fensterchess for reporting that issue);

- More ambient music options; and

- More automation enhancements.

I know this type of YouTube channel doesn't appeal to all chess players. Please provide constructive criticism if you have the time and patience to do so. I was hoping to get the "Games of Fabiano Caruana" playlist on the premiere schedule (ahead of the Candidates 2026), but his play history is too extensive and causes the PGN Movie Maker web app a ton of latency, so there will be a lot of bug fixes in my next pull request cycle related to PGN size.

Upcoming Premiere schedule: Games of Miguel Najdorf; Games of Gukesh; FIDE World Chess Cups 2011-2023; Games of Capablanca

Thanks everyone. Keep pushing pawns responsibly.

Note: This is a passion project and there are no AI tokens involved in the operation of this automation pipeline.


r/ComputerChess • • Jan 06 '26

If I run Lichess Stockfish 17 at lower threads (a weaker computer), will it give same evaluation at same depth?

9 Upvotes

I sometimes don't have access to my laptop (which is only so strong anyway) and analyze positions on my phone. I don't have access to as many threads/memory as on my laptop (which have less than a stronger computer anyway), but does that mean the evaluations at the same depth will actually be different, or simply that the speed it reaches those depths will be slower?


r/ComputerChess • • Nov 09 '25

Kreveta chess engine

9 Upvotes

I've been working on this C# chess engine for a few months now, and would be very glad for any feedback - bug reports, missing or incomplete features, anything. Any contributions are welcome :)

links:
https://github.com/ZlomenyMesic/Kreveta
https://zlomenymesic.github.io/Kreveta


r/ComputerChess • • Nov 01 '25

Evaluating AI chess compositions - A study by Google DeepMind

Thumbnail
en.chessbase.com
9 Upvotes

r/ComputerChess • • Aug 15 '25

Cool draw Lc0 found against stockfish

Post image
9 Upvotes

Just wanted to show off this position where Lc0 found a force draw in an otherwise losing position in my tournament yesterday. Since I’m sure somebody will be curious how stockfish would blunder something like this, the time control of the game was 15s + 0.15s.

The sequence in game was Rb2+ Ke3 f5 a8=Q Bd4+ Kf4 Rf2+ Kg5 Rxg2+!! Kf4 Rf2+ Kg5 Rg2+ (Kxh4 Bf2#) Bxg2 Be3+ Kh4 Bf2+ Kg5 Be3+ Kh4 Bf2+ Kg5 Be3+ (1/2-1/2)


r/ComputerChess • • Aug 12 '25

After 24 rounds, Integral leads ahead of Stockfish and Lc0 the Top Chess Engine Championship (TCEC)

Post image
9 Upvotes

r/ComputerChess • • Jul 19 '25

You can now analyze games for free.

9 Upvotes

So, chess.com has some limitations on reviewing a game, and it is not free. So, I have designed a website which is free forever and it uses lichess's lila to compute and analyze the moves. So, now this is not 100% accurate with chesscom as chesscom is closed source and we don't have any code available, but thankfully lila is open sourced and I have referred some other sources to build this website.
So, this is the website: https://analyze-chess.tausiqsama.me/
and its github is: https://github.com/tausiq2003/analyze-chess/

Let me know what you think, if like this project, you can support me.


r/ComputerChess • • Feb 04 '25

Humorous: XKCD with a funny about a computer chess engine. Enjoy!

Thumbnail
xkcd.com
9 Upvotes

r/ComputerChess • • Dec 18 '24

A fun video where a high level player explains a slugfest between two top engines

Thumbnail
youtube.com
9 Upvotes

r/ComputerChess • • Aug 19 '24

Engine Release GoFish: a chess engine that focuses on creating a more extensible and customizable engine framework that is easy to understand and modify

Thumbnail sciencedirect.com
9 Upvotes

r/ComputerChess • • Aug 13 '24

Articles/papers on NNUE architecture?

9 Upvotes

I'm looking for deep, technical resources on NNUE so I can build my own from scratch. I browsed a few existing implementations but they're a little hard to grok because of all the specific optimisations each engine made. Pretty experienced with ML so just looking for something that explains the architecture in some detail, don't need code


r/ComputerChess • • Aug 08 '24

peaBrain šŸ«› new UCI chess engine for macOS

9 Upvotes

hello all — i've written and released a new chess engine — peaBrain 8 šŸ«› by john roland penner is a UCI Chess Engine written in Swift for macOS (released july 21, 2024) https://github.com/johnrpenner/peaBrain

it offers human-like play, and since the move generator is relatively slow, it doesnt rate very highly in ELO — doesnt make any really good moves, nor does it make any really bad moves — plays a sufficiently solid game — although any average club player (1600 ELO) should be able to beat it. i would be interested in any users that have played against it as a human.

cheers!
john penner from toronto island (and author of peaBrain)


r/ComputerChess • • Jun 11 '24

Designing a hackathon / tournament for GPU computer chess. Suitable for a weekend event.

9 Upvotes

I'm putting together an event to prove out some GPU cluster infrastructure. We'll have 100-300 ~24GB Ampere GPUs available for the weekend (end of this month), and are bringing my company's distributed training management software to make that part of things easy (hopefully). So people can focus on model development, we've setup an agent, a visualiser and generated some game datasets from Stockfish and Carlson's games. We're also building a few basic models for people to get started with.

I'm not sure if it would be feasible to make progress with a full RL approach in a weekend, but interested to see if that would be possible.

The goal of the event is to have some fun learning how to build or refine GPU chess, and for us to see the limits of our infra management. The expectation is people will be training from scratch on up to 64 GPUs.

I'm looking for feedback on the event format, good datasets to work with, and which open neural net engines would be good for us to work with.


r/ComputerChess • • Jan 09 '24

Low-rated players (seem to) do well in metrics compared to GMs

9 Upvotes

It started out very unscientific, when I noticed that I have way more 3-medal beautiful games in Chessbase than Magnus Carlsen. Obviously I'm not a better chess player. My Chesscom rating hovers around 600. But I seem to play a more interesting game. When I did an actual comparison, it turned out I was right. I compared my latest 1000 wins against Magnus' latest 1000 wins. I have 74 and he has 21. That couldn't be more than an anomaly though. Right? So I checked in a *bit* more scientifically.

Grabbing all the Chesscom games from Hikaru, Magnus, and Nihal Sarin (the three people at the top of the leaderboard) I then grabbed my own games and those of my two most recent opponents who revealed their actual names. That meant I had the games of [ahem] as well as Frank J. and Von B.

Even with three on each side, it was the same. Hikaru had 16 three-medal wins, and Nihal Sarin had 24. On the other end, where the bad chess players are, Frank J. had 46 and Von B. had 52. So it's not just me.

I then ran all those three-medal win PGNs through Stefan Pohl's Interesting Wins Search Tool, to find what he refers to as "very interesting wins". I ended up with 38, Von B. ended up with 20 and Frank Johnson ended up with 14. On the other end, Magnus ended up with 4, Nihal Sarin ended up with 7, and Hikaru had 8.

My best guess is that the elevated level of competition makes it harder to pull off interesting moves. But if these are any sort of indication, maybe the low-rated games are more interesting overall.


r/ComputerChess • • Dec 02 '23

Good way to estimate engine Elo on Linux command line?

9 Upvotes

I'm building a chess engine. Early stage.

I would like periodically estimate its Elo rating. Ideally, automated in Linux via scripting on the command line. I don't get to get the engine listed anywhere.

Any existing tools or methods to do this?


r/ComputerChess • • Oct 16 '23

Started a rust-based engine over the weekend, this is a lot of fun!

9 Upvotes

I watched the Coding Adventures video about chess bots, and I got inspired.

So far I have gotten board representations as array-of-bytes and bitboards up and running, as well as 128bit zobrist hashing.

Coincidentally it looks like I'll be able to support Chess960 and torpedo chess out-of-the-box.

My next task is to add a board representation as coordinate lists for each piece, and then create a board state that incorporates all three, updating them in lockstep. My reasoning is that it'll be easier to do certain operations on the different board representations:

  • Checking for presence of pieces in a region is easier in bitboards

  • Checking enumerating valid moves is easier starting from a list of pieces

  • Computing valid moves is easier starting from an array of pieces

Definitely trading off space for time. And one can also add the zobrist hash and update it together with all the rest, without having to recompute it every time.

After that, I'll work on moves, and then enumeration.

As far as UI goes, I'm thinking of using unicode chess pieces and color support in console and creating a TUI (Text User Interface) that takes input either in algebraic notation, or with arrow keys. I'm not sure if I want to use UCI, since it seems very cumbersome to implement, but it might be necessary in order to compete with other chess bots.


r/ComputerChess • • Aug 30 '23

DGT board compatibility - which software do they work with?

9 Upvotes

Hello,

I've been toying with buying one of the DGT boards, but there seems to be very little info online about which chess software their boards are actually fully compatible with. Even DGT don't seem to offer a list. Considering the price of these boards, I'm surprised.

Aside from Fritz (which I'm not keen on buying), what other chess playing software is any given DGT board likely to work with? Maybe an unfair question, but I'm a bit baffled by the claim these boards work with 'chess playing software', but there's no list. Is it because few do support them? Is it because the ones that do are flaky due to drivers?

Cheers muchly.


r/ComputerChess • • Aug 29 '23

Kelp Chess Engine Release!!

9 Upvotes

https://github.com/gautam8404/kelp

Kelp is not very strong right now there is something wrong with possibly search or eval which i am unable to figure out, i'll be working on it again after a break.


r/ComputerChess • • Aug 03 '23

This negamax works perfectly without alpha/beta pruning, but plays poor moves after implementing it. Could anybody tell me why?

9 Upvotes

public Move Think(Board board, Timer timer)

{

int bestEval = int.MinValue;;

Move[] moves = board.GetLegalMoves().ToArray();

Move bestMove = moves[0];

foreach (Move move in moves)

{

board.MakeMove(move);

int eval = -NegaMax(board, MAX_DEPTH, int.MinValue, int.MaxValue);

board.UndoMove(move);

if (eval > bestEval)

{

bestEval = eval;

bestMove = move;

}

}

return bestMove;

}

//Evaluates a move based on the resulting board position

private int NegaMax(Board board, int depth, int alpha, int beta)

{

if (depth == 0)

return EvaluatePosition(board);

nodesSearched++;

Move[] moves = board.GetLegalMoves();

int bestEval = int.MinValue;

foreach (Move move in moves)

{

board.MakeMove(move);

bestEval = Math.Max(bestEval, -NegaMax(board, depth - 1, -beta, -alpha));

board.UndoMove(move); //Must restore the board to its original position before testing the next move

alpha = Math.Max(alpha, bestEval);

if(alpha >= beta)

break

}

return bestEval;

}


r/ComputerChess • • Jun 11 '23

Metamorphic testing of chess engines

Thumbnail sciencedirect.com
9 Upvotes

r/ComputerChess • • May 12 '23

I decided to read through the AlphaZero papers in which I found some fascinating stuff. This is my summation of the second research paper.

9 Upvotes

r/ComputerChess • • Jan 30 '23

Is there a way to get stockfish to remember / store past analysis?

9 Upvotes

I'm using chessx / arena with stockfish 15.1, and was wondering if there was a way to get stockfish to store analysis done in the past so that if I look at the same position again later, it can continue from there or just show that past analysis, to speed things up.


r/ComputerChess • • May 19 '22

Is there any opening book generated by a strong engine?

9 Upvotes

I would like to have an opening book, which only includes the absolute best engine lines. So it wouldn't include any theoretically unsound gambits and no opening line should end up in more than +1.0.