r/ComputerChess • • Jul 20 '25

I built the first community leaderboard for brilliant chess moves

Post image
10 Upvotes

Hey everyone!

We kicked this off about a month ago, and it’s been awesome seeing you all dive in.

We received great feedback on our game review and we just added a community based leaderboard for brilliant Chess moves!

Check out chessigma.com/leaderboard to play around with it.

Thanks for the support!


r/ComputerChess • • Jul 02 '25

Made a chess engine with a tutorial in C#!!

Thumbnail
youtu.be
10 Upvotes

r/ComputerChess • • Mar 30 '25

Stockfish 17.1

Thumbnail
stockfishchess.org
10 Upvotes

r/ComputerChess • • Feb 07 '25

I've added over 400 engine opponents to my CCRL Challenger site - Play against 576 engine opponents from 134 engines in your browser

10 Upvotes

Hi everyone,

Site: https://www.jimmyrustles.com/ccrlchallenger?complete_list=True

I posted a while ago about my CCRL Challenger site, it allows you to play against engines from the CCRL in your browser. I originally had 118 engines, but I've since increased that to 134 unique engines, and including alternate versions of those engines, there are now 576 engine opponents to play against, ranging from 688 in rating to Stockfish 17 at 3817.

I made my scraper script scrape the complete list instead of just the top engines, and find and download the old versions from Github. After testing all the engines, I was left with 576 versions of 134 engines.

I've also made some updates to the site.

There's now a Playing Now page where you can see the games in progress. I've also improved the mobile page so it should be a lot more usable on mobile now. It also shows release dates now, and you can sort by release date. It also shows the logo for each engine where available.

There's an option to show engines rated under 2000, which should be good for finding engines that are actually beatable.

Let me know what you think. Thanks.


r/ComputerChess • • Feb 04 '25

How rare are these and what can I sell it for

Thumbnail
gallery
10 Upvotes

r/ComputerChess • • Dec 06 '24

Interview with Microchess creator Peter Jennings

Thumbnail
spillhistorie.no
10 Upvotes

r/ComputerChess • • Oct 01 '24

Coding Exercise: Modeling Chess (and other board games) in Clojure

10 Upvotes

I wrote this code walkthrough for teaching/learning basic concepts in functional programming.

I hope somebody here find it interesting. Feedback welcomed! Thanks!


r/ComputerChess • • Jul 29 '24

How Checkers Was Solved

Thumbnail
theatlantic.com
10 Upvotes

r/ComputerChess • • Jul 27 '24

My first chess bot

10 Upvotes

I spent my spare time over the last few weeks building a chess bot, and it's been a super rewarding experience.
I set out with the goal of learning more about chess and building a bot I can play against, but it's now surpassed my abilities (I'm a noob so that's not saying much!)

Here's the link if you want to try it out online:
https://iblunder.com/

It's not got super human abilities, I've seen it be beaten by at least 1 good player. But if you give it a go I'd love to know how it faired!

Now the bot is live I plan to add features to the site to help myself and others learn chess including:

  • Configurable difficulty

  • Undo move

  • Move scoring

  • Preset games / chess puzzles

Let me know if you've any ideas for features to help improve low / mid level game play.


r/ComputerChess • • Jun 14 '24

GPU Chess Hackathon - 29&30 June - San Francisco

10 Upvotes

Thank you for the feedback on the chess hackathon my team is putting together.

29 & 30 of June we're running the event in San Francisco. If you or someone you know would like to attend here's the application:

https://lu.ma/blw9mmad

Keen for further feedback on how to make the event more interesting.

Internally we've completed a dry run of the event.
Our model training and tournament system is working.
We'll be iterating on it and further developing datasets over the next two weeks.

The goals are mostly to build familiarity with training on distributed systems and building neural networks capable of playing chess. All things going well, we could extend from an introductory experience into other formats allowing for serious development of competitive chess AIs. We also have compute research grants which could be considered for this topic: https://strongcompute.com/research-grants


r/ComputerChess • • May 21 '24

256 Core Dual AMD Epyc System - Stockfish 16.1 Optimization

10 Upvotes

Hi all,

I have access to a dual AMD Epyc 9754 system with 256 Cores / 512 Threads in total and 192gb ram, which should be great for Stockfish. On 16.1, with the standard config, I get around 220mn/s using a 64gb hash.

  1. Is that a good value for such a system?

  2. Are there any specific engine parameters that I should / can use to optimize performance?

As a GUID, I used SCID.

Thanks for your help.


r/ComputerChess • • May 19 '24

Komodo Dragon 1 engine

10 Upvotes

Hi
I see that the Komodo Dragon 1 chess engine is now free to download at https://komodochess.com
Their last free engine was Komodo 14. It is very kind of them to make their older engines free to download.


r/ComputerChess • • May 09 '23

how do I get my engine on lichess?

10 Upvotes

So recently I've been working on a chess engine in C++. I have a class Player that holds all the search logic, which has a function void search() that prints out the board. Seems to work fine.

Now the lichess-bot repo on GitHub runs using python. It needs a python class with a search() method implemented. How do I go about getting my engine to work with that code? I don't have experience writing wrappers, so any help is greatly appreciated.


r/ComputerChess • • May 06 '23

Is there any engine designed to play funny lines?

10 Upvotes

I was looking for a chess engine that is designed to play weird moves—anything unconventional, really. Intentional bad moves, aggressive moves, stupid troll Qh4, anything!


r/ComputerChess • • Feb 24 '23

How the Lc0 Training Games Work (In Windows)

10 Upvotes

There are two sets of PGNs available in open directories: the match games at https://storage.lczero.org/files/match_pgns/ and the training games at https://storage.lczero.org/files/training_pgns/

*****

This is what a match game looks like (with the movelist shortened):

[Event "lc0MG"][Site "internet"][Date "????.??.??"][Round "-"][White "lc0.net.2002"][Black "lc0.net.2001"][Result "0-1"]

1.d3 e5 [...] 69.Qh1+ Qxh1# 0-1

*****

This is what a training game looks like:

1.d4 Nf6 [...] 88.Qa7+ 0-1 {OL: 0}

So there are no headers for the training games.

*****

A typical filename for a training game file is pgns-run1-test60-20220101-0054.tar.bz2 or pgns-run1-test60-20220101-0654.tar.bz2 (or 1254 or 1854). The names reflect that these are from run1 (as opposed to run2 or run3), they are test60 (as opposed to test50, test40, test79, test80, etc.) They are 2022, January 1st. The first group of PGN files was compiled at 12:54 AM, the second at 6:54 AM, the third at 12:54 PM, and the fourth at 6:54 PM.

These tar.bz2 files are typically 25 MB. They uncompress either to a single .tar file, or to a folder of PGNs, depending on the way you do it, either of which around 75 MB. (The tar files would have to then to be uncompressed into the folders.) Those folders each contain around 125,000 PGN files! As mentioned, with the training games there are no headers, and each game is the movelist on one line, ending in {OL:0}.

*****

This is what a finished training game looks like, after using different methods to fill in the missing headers:

[Event "T60"][Site "training.lczero.org"][Date "2022.01.01"][Round "?"][White "Lc0 0.28.2"][Black "Lc0 0.28.2"][Result "1/2-1/2"][WhiteElo "3656"][BlackElo "3656"][ECO "A00"][EventDate "2019.07.26"][Opening "Clemenz (Mead's, Basman's or de Klerk's) opening"][PlyCount "98"][Beauty "5637144593938"]

1.h3 e5 [...] 49.Kf5 Rxd6 1/2-1/2

(Again, writing out [...] is a way of shortening the movelist to save space in this tutorial only.)

*****

The first step is to merge all the files into one. This is in two stages: merging each folder of ~125,000 files into one, and then taking those four merged files (per day) and creating one PGN.

To do so, create a .bat file with any name in the same directory, containing this line of code:

copy *pgn game1.pgn

Double-click on the file to run it.

It's a really good idea to delete the files as soon as you use them, as they pile up. It may take a few minutes to put them in the recycle bin, and another few minutes to fully delete them.

*****

Where does the information for the headers come from? We know that we're working with T60 files (EDIT: Which, according to the Project History page at https://github.com/LeelaChessZero/lc0/wiki/Project-History, T60 ran from 2019-07-26 to 2022-01-08). We know the URL that all of this material can be found at (training.lczero.org). The date is in the name of the tar.bz2 file.

To determine the version of LcZero used to test, you have to approximate, but according to the people at the Lc0 Discord channel, it doesn't particularly matter if they were testing, say, 0.29.0 when 0.28.2 was in release, because they aim for consistent testing conditions anyway. Which is a bit over my head, but at any rate, it's best to just assume that whenever a test is run, whatever version of Lc0 was in release at the time is the engine being used.

So according to the Releases page at https://github.com/LeelaChessZero/lc0/releases on the 1st of January 2022, Lc0 was in version 0.28.2. That takes care of the [White ""] and [Black ""] headers. To get the ratings, I went to the CCRL and looked it up: https://ccrl.chessdom.com/ccrl/404/cgi/compare_engines.cgi?family=Leela%20Chess

They're listing the neural network used to achieve the rating, but you can safely ignore that, as there's no point going down the rabbit hole of providing ratings for each one. For 0.28.2 the rating is 3656, so just plug that in. (Keep in mind the ratings change constantly, so it may be different at the time of readiing.)

To get the PlyCount and Beauty headers, it's necessary to take the PGN you have and open it in ChessBase 17, converting it to 2CBH format. (It's good to keep a copy in case it doesn't work out.) After converting, you have to set beauty and wait for the process to finish. (Hopefully not too long.) PlyCount is automatically generated just by using CB.

After determining beauty scores, highlight the entire database and output as a PGN text file (with the name game1.pgn, which it will automatically suggest.)

To get ECO code and opening, it's necessary to run a batch file on the command-line program pgn-extract. This is a bit too complicated to explain, but at the pgn-extract page (https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/) you can find the executable, along with the eco.pgn file. With both of those in the same directory as the PGN that you want to run the process on (and with that PGN named game1.pgn) you double-click on a .bat file with the following code in it:

pgn-extract.exe -e -omyoutput.pgn game1.pgn

Call the .bat file whatever you want. Also, if you want the input file name to be different, just replace where it says "game1.pgn". It has that name because that's the name ChessBase gives it.

Finally, to put everything in order, it's best to open the resultant file in Scid vs. PC, and then immediately exporting it back to itself, this time without line breaks at 80 characters, or in any other configuration you prefer. It's just a nice way of getting the headers all in the same order, and unwrapping the movelist (which makes it easier to embed in websites.)


r/ComputerChess • • Feb 21 '23

Programming language dilemma

10 Upvotes

Hey, I have dealt with chess engines superficially in a seminar paper. Now I want to try to write my own engine, but I have to decide which programming language to use. Either I want to use C++ or Python.

Here is the requirement for my engine. I want to write a traditional engine first, so without any form of machine learning. Later I would like to may extend it with machine learning. (I am familiar with basic machine learning, through my work).

Normally, I would therefore decide directly for Python. But since the runtime certainly also plays an important role, and there are libraries like TensorFlow anyway in C++ I can not decide. It seems that engines like StockFish and AlphaZero are also written in C++. On the other hand, I also have C++ wrapping available in Python. So I am currently in a dilemma and don't want to regred my decision later on.

I am asking for help, recommendations or tips of any kind on which language you would use and for what reason. (By the way, I am familiar with the Chessprogramming wiki.)


r/ComputerChess • • Jan 07 '23

Could someone help me figure out if this position is a fortress?

Post image
10 Upvotes

r/ComputerChess • • Oct 20 '22

It’s Stockfish vs Leela for the TCEC Superfinal

Thumbnail
chessdom.com
10 Upvotes

r/ComputerChess • • Oct 07 '22

Why does stockfish answer differently on first vs. second request to evaluate?

10 Upvotes

I have a situation where stockfish, freshly initiated, will give a different answer than when it's evaluating a second position.

The position is simple: 8/4k3/8/4K3/1P6/8/8/8 b - - 3 2 and I expected black to give his best defense: Kd7 and the engine performs as expected:

fen = '8/4k3/8/4K3/1P6/8/8/8 b - - 3 2'

engine = chess.engine.SimpleEngine.popen_uci("/usr/local/bin/stockfish")
board.set_fen(fen)
move = engine.play(board, chess.engine.Limit(time=1.0)).move
print(f'found move: {move}')

However, when I asked it to evaluate a previous position, and THEN this position, it returns Kf8 instead (an obvious loss):

engine = chess.engine.SimpleEngine.popen_uci("/usr/local/bin/stockfish")
board.set_fen('8/5k2/8/8/1P4K1/8/8/8 w - - 0 1')
engine.play(board, chess.engine.Limit(time=1.0))
board.set_fen(fen)
move = engine.play(board, chess.engine.Limit(time=1.0)).move
print(f'found move: {move}')

I'm using python-chess and, suspecting it could be at fault, replicated the results with a raw session:

uci
...
position fen 8/5k2/8/8/1P4K1/8/8/8 w - - 0 1
go movetime 1000
...
position fen 8/4k3/8/4K3/1P6/8/8/8 b - - 3 2
go movetime 1000  
...
bestmove e7f8 ponder e5d6

(where UCI e7f8 is SAN kf8) Any help's appreciated. This is an issue because in my training tool I need stockfish to give its best defense while white attempts to win (maintaining opposition until in front of the pawn, then outflanking).


r/ComputerChess • • May 20 '22

Play vintage chess games in your browser

Thumbnail
chessexpress.blogspot.com
10 Upvotes

r/ComputerChess • • Apr 20 '22

What are the niches in engine development.

10 Upvotes

Stockfish is the best engine at winning games then we have Maia variants for trying to play like humans and antifortress crystal. What are the other non gui features engines differentiate themselves with other than strength.


r/ComputerChess • • Apr 19 '22

Sliding Piece Algorithms on the GPU

10 Upvotes

Here is a github repository that compares GPU algorithms. If you have a current RTX 3090 or older RTX 2080Ti - please share your results!

Be the first worldwide to crack 100 Billion chess lookups per second!

https://github.com/Gigantua/Chess_Movegen_GPU

NVIDIA GeForce RTX 3080

Black Magic - Fixed shift: 5.20 GigaQueens/s

QBB Algo : 43.81 GigaQueens/s

Bob Lookup : 54.56 GigaQueens/s

Kogge Stone : 29.51 GigaQueens/s

Hyperbola Quiescence : 12.70 GigaQueens/s

Switch Lookup : 3.93 GigaQueens/s

Slide Arithm : 13.41 GigaQueens/s

Pext Lookup : 12.34 GigaQueens/s

SISSY Lookup : 6.15 GigaQueens/s

Hypercube Alg : 0.98 GigaQueens/s

Dumb 7 Fill : 19.58 GigaQueens/s

Obstruction Difference : 48.45 GigaQueens/s

Genetic Obstruction Diff : 75.20 GigaQueens/s

Leorik : 45.38 GigaQueens/s

SBAMG o^(o-3cbn) : 49.67 GigaQueens/s

NO HEADACHE : 22.36 GigaQueens/s

AVX Branchless Shift : 21.47 GigaQueens/s

Slide Arithmetic Inline : 51.88 GigaQueens/s

Bitrotation o^(o-2r) : 84.69 GigaQueens/s


r/ComputerChess • • Nov 08 '21

Stockfish Progress is Flat

Thumbnail
camo.githubusercontent.com
10 Upvotes

r/ComputerChess • • Sep 03 '21

Stockfish 14 vs Chess.com Max Engine | Knights vs Bishops | Can Stockfish overcome the disadvantage?

Thumbnail
youtu.be
10 Upvotes