r/ComputerChess • • Oct 21 '24

Predicting Chess Puzzle Difficulty with Transformers

Thumbnail arxiv.org
8 Upvotes

r/ComputerChess • • Sep 06 '24

Predicting User Perception of Move Brilliance in Chess

Thumbnail arxiv.org
8 Upvotes

r/ComputerChess • • Jul 21 '24

Where to download a chess engines collection?

8 Upvotes

Has anyone gathered a bunch of chess engines togerher and made it so that I can download them in one shot? Zip file or torrent? I am especially interested in plaing older and weaker chess engines.

https://www.chesscache.com/ChessEngines.html looks like it has what I want but appears to require downloading each engine individually.


r/ComputerChess • • Feb 09 '24

Combining "Mixture of Experts" with MCTS, gains 120 Elo

Thumbnail arxiv.org
8 Upvotes

r/ComputerChess • • Jan 27 '24

cheeseNet 🧀

8 Upvotes

I recently started working on a hobby project called “cheeseNet 🧀”. It is an experimental approach powered by Lc0 engine. This engine is has a hand crafted Hybrid Neural Network (HNN) (using T82-768x15 base model) utilizes Reinforced Self-Training (ReST) and human-feedback on 1 x A4000 16GB. It plays bullet, blitz, rapid. rated/casual. I used Lichess Bot API to run it on the platform under https://www.lichess.org/@/cheeseNet. The network has been trained for 1 pass so far using the Lc0 self play for 5K games with move over head of 100K. It’s been able to achieve 2346 bullet, 2354 Blitz and 2601 Rapid so far (this is the 3rd day of the bot being developed / launched). I chose the base net for 🧀 from 768x15x24h-t82-swa-964000. The 'hand-crafted' bit of my project isn't about tweaking the network's architecture; it's about the training approach. I'm using this network with the LC0 trainer, feeding it a mix of sanitized PGNs from my bot's games on Lichess and data from 5000 self-play games with 100K moves overhead, all crunched on an A1000 GPU.For human feedback, that's where my chess skills (FIDE rating 2101) come into play. I'm analyzing the bot's games (only Lichess atm), picking apart each move, strategy, and mistake. It might not be perfect but I enjoy this. Theyre then looped back into training the AI, giving it “my” touch. That's how it is learning to think a few moves deeper. The training data is full PGNs of the games it plays against others which contains all the moves made in the game. Therefor includes full policy information extracted from each game. This isn't limited to the moves played, but encompasses the entire probability distribution or evaluations the AI assigned to each possible move at every step. My analysis includes identifying key strategic and tactical moments, understanding the implications of certain moves, and annotating them.By using ReST (Reinforced Self-Training) the NN is expected to change significantly, for now I'm bound to 270 games (since 3 days ago) I'm gathering results for further analysis but so far the performance seems to be slightly better (for now solely based on Lichess statistic over rating improvement and number of win/draw/loss in comparison with opponent's rating). This training help the engine to perform better, more strategic, and distinctively different from its previous iterations. It’s an ongoing project/study.


r/ComputerChess • • Sep 09 '23

I coded my first Python library! A chess analytics library

8 Upvotes

I've been plugging away for the past few weeks coding this. It makes scraping data from the chess.com API super easy, and makes analyzing the game super easy as well. Just wanted to post this here because I'm super into this kinda thing, so figured there might be others into it too. Let me know if you have any feedback or suggestions!


r/ComputerChess • • Aug 17 '23

How are engine evaluation functions and constants calculated?

8 Upvotes

I'm currently writing a chess engine and I was wondering how evaluation heuristics (piece-square tables, mobility, king tropism, etc.) are calculated. I've been using generic numbers from the internet up until now, but I was wondering how those evaluation functions (or any evaluation function/constant for a fairly strong engine) were determined. I read on the chess programming wiki that Larry Kaufman used a combination of statistical analyses and intuition from his experience. I could probably write something off my own intuition and hone the values, but I'm not sure how much accurate my judgment will be. Even if my estimations were somewhat accurate, the process of fine-tuning them would probably also be a much less scientific procedure than whatever Kaufman did. How did you come up with your evaluation values and what was the process?


r/ComputerChess • • Jul 06 '23

Which engines really offer more "human-like" play?

8 Upvotes

I did a quick comparison of Stockfish 16, Dragon 1.0, and Rodent NN in three games of Paul Morphy and Adolf Anderssen, and of the three engines, Rodent NN picked the winning moves of a human grandmaster more often than Stockfish or Dragon. In fact Dragon performed slightly poorer than Stockfish. Using "human" personality in Dragon made absolutely no difference.

I would be curious to see a test suite (perhaps similar to the Strategic Test Suite in LucasChess?) for chess engines focused on looking for "human" moves... how could such a thing be done?

Incidentally, Rodent NN scores higher than Stockfish or Dragon on the STS test suite with a search depth of 3. Coincidence? I doubt it. In fact Rodent's score was almost as high as Leela's, using the same settings.


r/ComputerChess • • Jun 24 '23

Programming Contest: $666 for one simple function

Thumbnail talkchess.com
8 Upvotes

r/ComputerChess • • May 08 '23

explain my branching factor fluctuations

8 Upvotes

I am writing a homemade UCI chess engine in C++. I have a simple iterative deepening search that does alpha beta pruning with some basic move ordering. I also have a quiescent search that searches captures only. During the search, I calculate the branching factor with this formula:

(nonLeafNodes + leafNodes - 1) / nonLeafNodes

This is my search output when searching the initial position with a 10+5 time control:

go 600000 600000 5000 5000

~ Depth: 1, Time: 0.07ms, Score: 0, kN/S: 5584.26, Average branching factor: 20.95

~ Depth: 2, Time: 0.36ms, Score: 0, kN/S: 3785.53, Average branching factor: 3.05

~ Depth: 3, Time: 1.90ms, Score: 0, kN/S: 6113.89, Average branching factor: 8.85

~ Depth: 4, Time: 10.34ms, Score: 0, kN/S: 4814.54, Average branching factor: 3.17

~ Depth: 5, Time: 45.49ms, Score: 0, kN/S: 7751.43, Average branching factor: 9.18

~ Depth: 6, Time: 221.04ms, Score: 0, kN/S: 8038.58, Average branching factor: 3.33

~ Depth: 7, Time: 1124.10ms, Score: 0, kN/S: 9893.87, Average branching factor: 8.91

~ Depth: 8, Time: 7097.79ms, Score: 0, kN/S: 8650.47, Average branching factor: 3.49

~ Target elapsed: 24833, Actual elapsed: 8501

My question is about my branching factors. You can see that on odd depths, they are much higher than they are on even depths. I want to understand this phenomenon in detail. My intuition tells me it has something to do with the horizon effect, however this worries me because the horizon effect is mitigated by my quiescent search. I know this because there are no fluctuations in the score. Please let me know what you think (:


r/ComputerChess • • May 01 '23

Method for creating a unified rating list

8 Upvotes

The UCERL (Universal Chess Engine Rating List) is one of my long-term projects. It's a dodgy proposition, at best, in that it involves downloading all the games from the CCRL, CEGT, CEDR, SPCC, and FGRL, normalizing the names, and then running the whole thing through Ordo to create a new rating list. Whether or not the project is justifiable is a good question, but one I'm not considering right now, as I really enjoy doing this.

The first thing to know is how to merge individual files (in Windows) (because some of them need it). You create a .bat file with the following line of code:

copy *pgn game1.pgn

Put that in the same directory as your files and double-click. Easy as pie.

The second thing to know about is Ordoprep:

https://github.com/michiguel/Ordoprep

This is a command-line program. The basic method is to create a .bat file with the following line of code:

ordoprep-win64 -p games.pgn -o shrunk.pgn

Put it in the same directory as the software, and then grab your PGN of games, give it the name "games.pgn" and then double-click on the BAT file. That will give you games that look like:

[White "Pedone 2.0 64-bit"]
[Black "Arasan 22.0 64-bit"]
[Result "1/2-1/2"]

1/2-1/2

This is how you prep the PGN. [EDIT: Forgot to mention, you have to take out all the games that filter on the string "CPU", because their wins are going to be different than the single-cpu engines.] But there is another step, and would involve writing the BAT file as follows:

ordoprep-win64 -p games.pgn -o shrunk.pgn -Y name-syn.csv

and having a comma-separated value file where each line is the name of an engine, followed by other synonyms that it appears as. So the lines would look something like:

"Adamant 1.7"
"Admete 1.2.1","Admete 1.2.1 64-bit"

The way I prepare this list is to open games.pgn in Scid vs. PC, then open the Player Finder, press SHIFT+CTRL+END, to highlight everything, and CTRL-C to copy it, then paste it into a spreadsheet program as tab-separated text, take out every column other than the name column, copy that into a text editor, and sort according to name. Then RegExp with the following search term:

^(.*)$

and replacing with

"\1"

That'll put quotes around everything. It's busy work to create the synonyms.

From there you run Ordo on the whole mess, but that's a different subject.

Hope this is of use to a few people, as it seems unlikely that I'm the only person to think of this.


r/ComputerChess • • Apr 23 '23

Is it possible to add a measure of how precise your play should be in a position?

8 Upvotes

Today I watched the WCC stream, and at some point one of the commentators said "a position may look equal but if engine took a significant time to determine it's equal, it may mean that to equalise you have to make a series of precise moves". It makes sense actually.

And I wondered if it's possible to make some kind of metric for a position, in addition to evaluation, to determine how precise the players' play should be to keep the current evalution. Like, to watch how many moves don't ruin the eval. Although sometimes there are situations where there is the only move of many possible ones but it can't be called "precise", like when you trade queens, the only move is to recapture opponent's queen, others usually will ruin you. Anyway, any thoughts on this? Maybe someone has already done anything like this?


r/ComputerChess • • Apr 11 '23

Never trust other's magic numbers: possible bug in CPW?

Thumbnail self.chessprogramming
8 Upvotes

r/ComputerChess • • Apr 07 '23

SHOULD SEARCH BE RECURSION?

8 Upvotes

I've been making my chess engine for around a week now and it finally works! I use minimax with alpha beta pruning. Now, it can easily reach and evaluate depth 7 or 8 in just a few seconds. But more than that, it gets exponentially slow (it took almost a minute to evaluate the starting position at depth 10).

One thing to note is that I am using recursion in my search, and I am not sure whether this approach slows down my program. Is recursion bad for performance? or am I just implementing it poorly?

I did the search recursively mainly because I found it easy. Can you also give me some tips on how to do it iteratively? I tried to think about how to do it iteratively but somehow it always adds some complexity. Thanks


r/ComputerChess • • Mar 27 '23

DGT Centaur and black rings

8 Upvotes

Can anyone explain to me what the "black rings" are when referring to older model DGT Centaurs? I see this term quite often but can't find an explanation of what they actually are. Thanks in advance!


r/ComputerChess • • Mar 27 '23

DGT Centaur - Can you update the chess program?

8 Upvotes

Can you update the Stockfish engine used by the DGT Centaur or is it a locked system?


r/ComputerChess • • Mar 11 '23

Koivisto (white) Losing to Stockfish (black) even with 4x threads

8 Upvotes

This started out as me trying to confirm that koivisto is indeed one of the strongest engines out there (or I guess I was just trying to amuse myself with some engine chess). I was looking for an open source engine with cleanly written and well commented code to serve as a guide when writing my own, and koivisto seemed suitable for this.

I downloaded the avx2 exe and started a game in arena chess gui using the demo mode, with stockfish having the white pieces and running using 3 threads and koivisto using 1 thread. I was expecting koivisto to draw easily, but it just kept losing every game, so I gave it the white pieces and 4 threads vs stockfish's 1 but to my surprise it lost again.

Am I doing something wrong? Surely koivisto is strong enough to draw easily from the starting position?

Going to conduct a 50 game tournament now - Stockfish [1 thread] vs Koivisto [3 threads].


r/ComputerChess • • Mar 05 '23

Max ply seldepth

8 Upvotes

My engine when searching a particular move sometimes reaches seldepth to maxply of my engine. When it does, it doesn't return a move, will just keep running and lose on time. I'm guessing this happens when because it searches higher depth when calculating the PV line. My engine does have a condition that if ply >= maxply return the eval. How do I fix this?


r/ComputerChess • • Jan 08 '23

[x-post r/chess] Will Stockfish adjust pruning aggression depending on available resources? Massive resources slower to same depth than limited resource machine

Thumbnail old.reddit.com
8 Upvotes

r/ComputerChess • • Nov 13 '22

Looking for a Kid-Friendly and "Family Chess Computer"

8 Upvotes

Hey r/ComputerChess! This is my first post here, so hi everyone :-) I am cosidering buying a chess computer for x-mas. I am looking for a device that clears these goals (or as many as possible):

  1. is enjoyable for my 7-yo to play every now and then (i.e. should be beginner-friendly)

  2. is enjoyable for me, 38-yo beginner, and will remain "challenging" for quite a while

  3. can work "standalone", i.e completely offline and without any external device (like a smartphone, laptop etc.)

  4. can also connect to services like chess.com or lichess via bluetooth/smartphone

  5. can run on battery (ideally replaceable, but this only a bonus)

  6. should cost USD/EUR 400,- max

I am currently considering these devices:

  1. DGT Centaur (used to be my favorite, but misses goal #4. And the more I read about it, it also appears to be quite challenging/difficult for beginners, which might mean it also misses goal #1 and potentially #2. There's a modded firmware out there which requires the installation of a different raspberry pi model, but that seems to be unavailable at the time of writing this post.)

  2. DGT Pegasus (misses goal #3, but otherwise looks fine)

  3. Millenium eONE (just as the Pegasus it fails at goal #3)

  4. Bryght Labs ChessUp (seems to pass all the goals mentiones above, but is quite pricey, especially compared to the eONE and Pegasus (costs over EUR 400 here in Europe). also, the chess pieces that come with it look a bit "cheap" to me. the manufacturer seems to be a smaller startup compared to the established companies such as DGT and Millenium. just wondering about long-term support(?).

As the ChessUp clears most of the goals, it seems like the "obvious choice". Would anyone argue against that? If so, why. Did I miss a board in my list above? Do you own one of them and would like to add something (confirm one of my argumenst, argue against my reasoning)? Which one would you get in my situation?

Additional questions:

  • Does anyone know if the Pegasus and/or the Millenium eONE can be played against the chess.com and/or lichess AI or only vs. human players?

  • The Bryght Labs ChessUp was a kickstarter project in the early stages of its development, which has a bit of a "startup flavor", and I am somewhat concerned that the app support might be gone some day (which, frankly, is what bothers me with most of those "app required" boards above). What is your guys' reasoning in that regard?

  • I really like the idea of the "skill level equalizer" on the ChessUp for me and my son. Does anyone know if any of the competitors has something similar in store?


r/ComputerChess • • Oct 29 '22

How to make engines (Stockfish) go slower?

8 Upvotes

The thing is, in general, CPUs are too powerful for my experiment.

I wish to benchmark some complicated positions with Stockfish at 100 nodes, 1k nodes and 10k nodes and see the evaluation changes. Better yet, any means to make SF run at 100 nodes per second with i7-12700H.

Anyone has ideas of how to implement this experiment without spending money?


r/ComputerChess • • Oct 15 '22

DuckChess for Zillions of Games

Thumbnail
github.com
8 Upvotes

r/ComputerChess • • Oct 08 '22

I made a Portal 2 chess variant and I was wondering if it's possible to use an engine to test the game considering it has some very unusual mechanics.

8 Upvotes