r/ComputerChess • • Oct 07 '24

ARTE: Film on Kasparov vs Deep Blue

Thumbnail
en.chessbase.com
17 Upvotes

r/ComputerChess • • Aug 26 '24

Evolution of chess algorithms

17 Upvotes

Had a seminar as part of college where we could choose any topic. I chose chess computing
https://www.canva.com/design/DAGLsW9Dm1w/jBcjEBJR5mWpzKsrOlER9g/edit?utm_content=DAGLsW9Dm1w&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton
here is the link to it if anyone finds it useful :)


r/ComputerChess • • Jul 01 '24

Thesis on Chess Commentary Generation

17 Upvotes

Hello redditors!!!

I'm a portuguese student currently working on my thesis on Chess Commentary Generation Models using artificial intelligence.

When looking at decisions made by stronger players or by superhuman chess engines, it is sometimes challenging to understand the reasons why a move is exceptionally strong, which makes it challenging to be able to learn from these moves.

In this context, the integration of AI chess commentary emerges as a solution to the challenge above. This approach holds the promise of spreading the knowledge derived from masterful chess moves and making it accessible to a wider audience, thereby enhancing the learning experience for players of all levels.

That being said I am asking for your help in getting human feedback for the commentary generated by some state-of-the-art models. The whole forms should take you at most 10 minutes and it would help me greatly in this research. Here is the link if you want to help me out: https://forms.gle/EDDbF6pR5qEAmwyJ8

Thank you very much for reading and for your help!!!


r/ComputerChess • • Jan 10 '23

I decided to do a tournament for fun with one engine of every letter of the alphabet, I need ideas for some letters.

Post image
17 Upvotes

r/ComputerChess • • Jul 22 '22

Total dominance: Stockfish wins TCEC Fischer Random Chess final to cap quadruple crown

Thumbnail
chessdom.com
17 Upvotes

r/ComputerChess • • Mar 05 '22

Automated Chessboard Project

Thumbnail
instructables.com
17 Upvotes

r/ComputerChess • • Feb 14 '22

100% Accurate Binary Neuronal Networks

17 Upvotes

Binary neural networks have been used for evaluation - but not for movegeneration. UNTIL NOW!
Here I created a repository that can train a binary neural network to 100% accuracy.
The proof of concept are the sliding pieces rook and bishop where the network can predict the output bits from all 16384 possible input patterns with just taking 256 bits!
The speed is very good and it can do 50 Million inferences per second and core!
https://github.com/Gigantua/Chess_BinaryNeuralNetwork

Binary neural networks will play a huge role in chess - because one input vector can natively be a 64 bit variable and it does not need an extra layer between a native bitboard and a binary neural network!


r/ComputerChess • • Sep 29 '21

Weird computer chess behavior: Spike 1.4 (2011) destroys Stockfish 14 at this puzzle

17 Upvotes

r/ComputerChess • • Sep 22 '21

Gigantua: 1.5GNodes/s Movegenerator - for Monte Carlo search

17 Upvotes

So for the last 2½ I was obsessed with the move generation problem of chess.

I originally wrote a few move generators in C# and C before trying out C++ and looking into chessprogramming forums. TLDR: Just try it out (Ryzen 5000 and Intel): https://gigantua.page.link/Download

My movegenerator generates 1500 MNodes on a single thread without hashing for kiwipete and needs 5300ms for depth 6.

Not looking into chessprogramming.org and other solutions before gave me the great opportunity to develop some original ideas that I saw were not present in any existing movegenerator. I was happy to see that hashing with different seeds (or as you call it magic hashing) was a good idea - but as it turns out it will soon be obsolete by fast pext hardware on all processors (seed lookup will still be important for gpus)

There is a way to write a legal movegenerator without a movelist and without the concept of make/unmaking a move - as it turns out its way faster to directly enumerate all moves without a between step of generating and storing and looping over the results + making/unmaking moves.

This Movegenerator is a [b]Incremental Bitboard generator[/b]. Which only ever looks at the 2/3 bits(enpassant)/4 bits(castling) that change during all possible moves. All checks are handled by a single & instruction. All pins are handled by maximum two & instrustions. All Combinations of all Enpassant / Pinned / Check moves are handled the same code.

So this engine has:

- abscent movelist (all moves still get a callback for possible ordering)- Checks and Pins need 2 Instructions max- Branchless Metaprogramming- Bulk Counting for leaf nodes (can be disabled)- Probably the fastest Slider + Slider Xray lookup possible with a total of 4 instructions per slider move (pext)

Possible Perfomance improvements:- Hashing- Multithreading

What you need to run this:

- Ryzen 5000 or Intel Processor

- Zen2/3 build will come soon and will be 25% slower.

If you have a Ryzen 5000 / Intel give it a go: (github page and sourcecode will follow soon)

https://gigantua.page.link/Download

Use it with your own Fen string like this:

Gigantua_Zen3.exe <FEN> <depth>

Gigantua_Zen3.exe "r3k2r/Pppp1ppp/1b3nbN/nP6/BBP1P3/q4N2/Pp1P2PP/R2Q1RK1 w kq - 0 1" 6

So anyway here is the output:

Perft Start 1: 20 0ms 1.05263 MNodes/s

Perft Start 2: 400 0ms 30.7692 MNodes/s

Perft Start 3: 8902 0ms 127.171 MNodes/s

Perft Start 4: 197281 0ms 583.672 MNodes/s

Perft Start 5: 4865609 5ms 861.322 MNodes/s

Perft Start 6: 119060324 131ms 903.972 MNodes/s

Perft Start 7: 3195901860 3286ms 972.469 MNodes/s

OK

Perft Kiwi 1: 48 0ms 6.85714 MNodes/s

Perft Kiwi 2: 2039 0ms 169.917 MNodes/s

Perft Kiwi 3: 97862 0ms 843.638 MNodes/s

Perft Kiwi 4: 4085603 3ms 1356.44 MNodes/s

Perft Kiwi 5: 193690690 119ms 1621.86 MNodes/s

Perft Kiwi 6: 8031647685 5363ms 1497.43 MNodes/s

OK

Perft Midgame 1: 46 0ms 6.57143 MNodes/s

Perft Midgame 2: 2079 0ms 346.5 MNodes/s

Perft Midgame 3: 89890 0ms 1123.62 MNodes/s

Perft Midgame 4: 3894594 2ms 1570.4 MNodes/s

Perft Midgame 5: 164075551 102ms 1598.63 MNodes/s

Perft Midgame 6: 6923051137 4255ms 1626.67 MNodes/s

OK

Perft Endgame 1: 38 0ms 19 MNodes/s

Perft Endgame 2: 1129 0ms 225.8 MNodes/s

Perft Endgame 3: 37035 0ms 787.979 MNodes/s

Perft Endgame 4: 1023977 0ms 1572.93 MNodes/s

Perft Endgame 5: 31265700 17ms 1764.23 MNodes/s

Perft Endgame 6: 849167880 515ms 1647.11 MNodes/s

OK

Perft aggregate: 18999768562 13817ms 1375.05 MNodes/s


r/ComputerChess • • Mar 16 '19

SF mates Leela in 25 moves at CCC6

17 Upvotes

What a crazy game! Leela does a king walk and gets devoured. Time control is 10|10.

[pgn][Site "Chess.com CCC6 Winter Classic Final"] [Result "1-0"] [White "Stockfish"] [Black "Leela"] [WhiteElo "3655"] [BlackElo "3629"]

  1. e4 Nf6 2. e5 Nd5 3. d4 d6 4. Nf3 dxe5 5. Nxe5 Nd7 6. Nxf7 Kxf7 7. Qh5 Ke6 8. c4 N5f6 9. d5 Kd6 10. Qf7 Ne5 11. Bf4 c5 12. Nc3 a6 13. b4 b6 14. Bd3 g6 15. bxc5 bxc5 16. Rb1 Rg8 17. Rb7 Qa5 18. O-O Qxc3 19. Rfb1 Qa5 20. Bxe5 Kxe5 21. Rxe7 Bxe7 22. Qxe7 Be6 23. Qxe6 Kd4 24. Qe3 Kc3 25. Rb3#[/pgn]

Lichess link: https://lichess.org/oDA1hddg


r/ComputerChess • • Dec 31 '18

New Deepmind article (pdf) about AlphaGo parameter tuning, might be relevant for Leela chess

Thumbnail arxiv.org
17 Upvotes

r/ComputerChess • • Apr 23 '18

Deepmind's PR hit and run

17 Upvotes

https://groups.google.com/forum/#!topic/fishcooking/ExSnY8xy7sY

Dear Sirs,

Please let me congratulate you on your amazing achievement in developing AlphaZero chess! As someone who completed a thesis in neural networks back in the 90's, I could not be more amazed at how far you have been able to advance the field.

I can't speak for the entire Stockfish team so I simply speak as one of its open source contributors. If you read other posts on this forum or talkchess.com however you may find that what I'm about to point out may mirror the sentiment of others in the computer chess community as well.

AlphaZero won the 100 game match against Stockfish very impressively by a total score of 28 wins and 72 draws and 0 loses. This translates to an Elo difference of 100. However the details of the match described in your paper show that this match might have been much closer and more interesting had it not been for some IMO rather unfair conditions. These might not be immediately obvious even to those using chess engines on a regular basis.

  1. In the match version 8 of Stockfish was used which is now over a year old. The latest version of Stockfish is over 40 Elo stronger in fast self play. http://tests.stockfishchess.org/tests/view/5a23e7c10ebc590ccbb8b6d8 When consulted the Stockfish team always enters the latest version into serious competition such as TCEC.

  2. The 1GB amount of memory used for the hash table on a 64 core machine with 1 minute per move is sorely inadequate. Stockfish displays the % of hash used so anyone can see how quickly it fills up. An reasonable amount of memory would likely have been around 16 times more at 16GB. The reason this is especially critical with many threads is because Stockfish uses the hash as the main mechanism through which all threads communicate(aka Lazy SMP). It is almost certain that this resulted in another significant Elo reduction in Stockfish.

  3. Much effort has been put into making Stockfish understand which positions are critical and which are not. Based on this Stockfish manages its clock very carefully spending significantly more time on some positions during a game and very little on others. Disabling this feature and forcing Stockfish to use its time based on your same 1 minute for every move time control results in yet another large Elo reduction.

Since the Stockfish team wasn't contacted prior to the match I believe the issues outlined above were simply a result of unfamiliarity with the Stockfish engine. With the above issues corrected the 100 Elo gap should change quite significantly. I believe you are interested in a fair match more than winning and it is therefore my hope that a second proper rematch can be played for the benefit of both scientific research as well as the chess community. I wish to thank you for the tremendous contribution you have made to computer chess with a completely novel approach and hope that Stockfish has been a useful competitor for your testing. Please don't hesitate to contact myself or the Stockfish team in the future. We are your fans.


r/ComputerChess • • Sep 23 '26

I used my GPU to train the fly brain to 1300 elo.

Thumbnail turlockmike.github.io
16 Upvotes

Trained using RTX 5080 for 20 hours, 300k games self play.

More details in repo


r/ComputerChess • • Jul 23 '26

I trained bots on 150 years of chess history — you can now play against the 1850 meta

16 Upvotes

Ever wondered what it was like to face the King's Gambit era? I fine-tuned a human-like neural network (Maia-2) separately on master games from 1840–1885, 1900–1939, and 1950–1985, and put them online to play: https://chess.pharmatools.ai

The Romantic bot opens 1.e4 97% of the time and plays the King's Gambit in 22% of its games — actually more than the 14% historical rate. The Soviet bot castles quietly, plays the English, and grinds. There's a validation page showing self-play stats vs. the real historical numbers, including the gaps (the bots never agree to draws, so they're more bloodthirsty than real Soviet-era players were).

Free, no signup, open source. Fair warning: they play like humans of their era, not engines — around club strength, with period-appropriate brilliancies and blunders. Try declining a gambit against the 1850 bot and see how long your position survives.


r/ComputerChess • • Sep 14 '25

Writing the fastest move generator. Up to 4BNodes/s

16 Upvotes

Hey chess community. I wanted to share my accomplishment.

Inspired by a post I saw a while ago (here), I decided to write my own move generator and try to beat it. The goal was to write a single threaded move generator, without hashing or other tools that may improve speed. Just going through every position.

I took some inspiration from Gigantuas' source code, as I had no idea about bmi instructions and templates before. So this was of immense help to achieve my goal! But because I had already written most of the code and found all ways to optimize the logic, refactoring my code with these instructions/templates immediately reached the target.

Running with my AMD Ryzen 7 9800x3d, my engine is able to calculate some positions at more than 4BNodes/s, while Gigantua (compiled with the same compiler and same specs) maxes out at ~3.1BNodes/s

Overall, my engine is about 25% faster, which is as far as I know the fastest move generator.

Another cool thing is that unlike usual perft engines, mine can actually make/unmake moves (with a limited performance impact), so it can be plugged to search the best moves for an actual chess engine! Unfortunately my chess knowledge is too bad to undertake this kind of project. I don't think I would be able to do more than 1500 elo.

I took the liberty of using the same benchmarking to have an exact comparison. Here are the results:

Mine:

Gigantua:

Happy to answer questions as well


r/ComputerChess • • Dec 16 '24

An Exploration into LLM-based Chess Engines: Part 1

16 Upvotes

I’ve always been fascinated with Chess Engines, and ever since AlphaZero came onto the scene with self-reinforcement and dominated the traditional handcrafted-function based Stockfish, I’ve wondered what other forms of chess engines could exist.

With the advent of Large Language Models such as OpenAI’s ChatGPT and Claude’s Anthropic, I saw the potential for a third type of chess engine, one not based on any hard-coded or self-developed heuristics, but instead “learn” from source materials given to it, similar to how a human would learn chess.

Other chess engines are capable of crushing even the best players in the world, which has been the case ever since Deep Blue. However, they do not appear to have any innate reasoning behind any moves they make, other than because the moves maximize their internal evaluation functions. On the other hand, with LLM-based engines, moves can be made based off of the training material itself, just like how a human would make moves partly based off of chess repertoire. To me, this presents a potential untapped opportunity to further explore a new type of deep learning, one that transcends heuristics and goes to a deeper, more fundamental level of understanding.

Currently, the discussion surrounding LLMs like ChatGPT seems to be that of either dismissal (ChatGPT can’t play chess) or jokes (see r/anarchychess). However, I believe that these stances represent missed opportunities for research and inquiry into the field of computer chess, and that with serious consideration, LLMs may prove to be a viable third type of chess engine architecture. However, given the immense improvements we've already seen (from the nonsensical moves that GPT3 gave in the top-voted r/anarchychess post to being able to produce a 50+ length sequence of legal moves), it's reasonable to think one may further improve upon the concept to produce a playable chess engine.

With this in mind, I’ve decided to embark on a scientific journey to see just how far LLMs can be pushed to produce a capable chess engine. Using vanilla ChatGPT as a starting point (of course not expecting it to perform well), I plan to iteratively expand upon its capabilities to explore this new direction of chess engine models. Each iteration will be playable as a real bot on lichess, so that its performance may be compared to that of real-world players (i.e., humans and other chess bots).

The first iteration is playable right now at https://lichess.org/@/gptghoti, and will be available to play against (given free hosting limitations) until the next iteration is released. It is a simple chess engine that sends the current position and all legal moves from the position and plays the response it receives, if legal (from cursory analysis of log boards, this seems to occur about 90-95% of the time). Otherwise, it plays a random move.

Stay tuned for further updates coming soon.


r/ComputerChess • • Sep 04 '24

Found this MEPHISTO POLGAR in the attic

Post image
16 Upvotes

r/ComputerChess • • Nov 07 '23

Are there any "searchless" chess engines besides Maia? If so, how good are they?

16 Upvotes

I'm fascinated by the idea that instead of generating all legal moves in a position and recursively searching for the node that gives the best evaluation, it's possible to train a neural network that directly tells you what the best move is in any position.

How much has this perspective been explored by chess engine developers? Are there (besides Maia) chess engines that use this design and achieve good results?


r/ComputerChess • • Feb 25 '23

Why is the Mephisto Phoenix $1,200—when it's just a $200 Raspberry PI kit with a bunch of pre-loaded chess engines?

Thumbnail
chesshouse.com
16 Upvotes

r/ComputerChess • • Feb 16 '23

Weekly 13kb JavaScript engine tournament

Thumbnail chess.dev
16 Upvotes

r/ComputerChess • • Dec 27 '22

TCEC trying a new league format, allowing engines with only 4k in (code or binary) size.

Thumbnail wiki.chessdom.org
16 Upvotes

r/ComputerChess • • Dec 10 '22

Interested in a platform that helps hobbyists get their bots off the ground?

16 Upvotes

Hey folks, cross-posting this from r/chess -

I’ve always been interested in trying to create my own chess engine. I recently gave it a shot, but I found it really annoying to set up all the infrastructure, like determining when en passant is a valid move (holy hell!) and interfacing with chess servers to actually see how my bot stacks up.

As a fun project, I’m thinking of spinning up a platform (calling it Playnet), which will provide the infrastructure to deploy your chess bot and take care of the annoying stuff. The plan is to create a website that helps you write your own chess engine and then run it on servers to determine how good your engine actually is.

I wouldn’t expect a top notch engine to come out of this or serious developers to use this, but mainly just for hobby-ists to play around and see if they can improve their bot from 500 to 1500 for example. The way I'd frame it is as an entry for people to experiment with computer chess, without needing to dedicate crazy amounts of time to set up. For example, if you just wanted to mess around with different heuristics, you could do so very easily.

Does this resonate with anyone? Would love to hear any feedback on this idea, especially from y'all engine experts. Here’s a quick form if you're interested in getting early access once this thing is live: https://tally.so/r/wM181p


r/ComputerChess • • Oct 24 '22

What are the frontiers in computer chess?

16 Upvotes

I was wondering if any engine developers could speak as to what are the features that they are looking to develop in engines that do not exist right now.

I know that there is a lot of development going on in making more human-like engines (e.g. Maia) but what other features / capabilities are engine makers looking to develop.

For instance, what do developers of Stockfish or Komodo or Leela hope to add to their engines to make them more competitive at the highest levels?


r/ComputerChess • • Oct 18 '22

SenseRobot debuted in September with a beginning value of 1,999 Yuan (US$278)

Post image
16 Upvotes