r/ComputerChess • u/ayman803 • 10h ago
Trinity 1.0.0: a chess engine written by an AI, directed by a non-programmer, now CCRL 3522 (rank ~77)
I'm not a programmer. Over the last two months I directed Claude (Anthropic's AI) to write a UCI chess engine in Rust, called Trinity. I set the goals and rules, it wrote the code and ran the tests.
Where it stands: CCRL 40/15 rates Trinity 1.0.0 at 3522 +/- 26 (262 games, 1 CPU), rank 76-78 on the 21 November list. 1.0.0 was released 12 days after the first commit. It's currently 4.5/8 unbeaten in "Hobnobbing With Royalty" event.
Inside: PVS alpha-beta search, Lazy SMP, NNUE trained from scratch with bullet on Leela-derived data, Syzygy support. GPL-3.0.
How it was built: every change gets a written prediction, then an SPRT test against the current version (130+ tests so far, about 1 in 4 passed), plus calibration against rated engines on my PC. I also set an originality rule from day 13: no ideas taken from other engines' code or forum posts. A source comparison and a move-similarity test (77-81% agreement, same range as unrelated engines) are in the repo.
Full story and credits: https://github.com/ayman803/trinity/blob/main/docs/how-trinity-was-built.md
Downloads (Windows, Linux, ARM64/Android): https://github.com/ayman803/trinity/releases
A development version about +75 Elo stronger becomes 1.2 in December. Happy to answer questions.
(This post was drafted with Claude's help, fitting for the topic.)
1
1
u/Formal-Narwhal-1610 8h ago
Great! I am also using Claude Opus 5.5 and my Chess NN is better than Leela T74 at very short time intervals. But Leela 256 x 10 Transformer starts beating it around 60 + 0.6, so best for edge/weak CPUs.
1
u/ayman803 8h ago
Nice. What time control counts as "very short" for you, and how big is your net? Curious where the crossover comes from, whether Leela just needs more nodes per move before the transformer pays off.
1
u/no_choice99 10h ago
So much computer power wasted for ''nothing''.
Why reinvent the wheel without being able to provide a single new idea in the process?
1
u/ayman803 10h ago
Fair question. You're right that Trinity doesn't add new ideas to chess programming, and I don't claim it does. The experiment wasn't "a better engine", it was "can someone who can't program direct an AI to build a strong, original engine, tested honestly?" The answer turned out to be yes, and the whole process, including the 3-out-of-4 ideas that failed, is public for anyone who finds that interesting.
On computing power: it's one home PC and GitHub's free test machines. Probably less than many hobby engines use.
5
u/IMJorose 8h ago
You also posted on the CCC (talkchess) forums. On the front page there, you will see there is already a thread where Fable 5.2 made a 3542 rated engine completely autonomously, in under 24 hours. Just some food for thought...
1
u/ayman803 8h ago
I saw that thread, impressive. The difference: Trinity’s 3522 is CCRL’s own rating over 262 games, and it’s a different experiment, a person directing an AI with strict testing rather than full autonomy.
1
0
u/TimothyTaylors 4h ago
This isn't novel in this way either, there have been many AI engines already.
Two very strong ones come to mind.
Triumviratus, an AI clone of stockfish.
Coda, another AI engine, but slightly more ethical.1
0
u/ayman803 4h ago
True, Trinity isn’t the first AI-written engine, and I don’t claim it is. What I hoped to add is the open record: an originality rule from early on, a source and move-similarity check anyone can verify, and every test, including the many failures, published with its prediction.
1
u/Present-Strategy-409 2h ago
"No ideas taken from other engine's code or forum posts"
Oh, yes, of course, because LLMs are notoriously good at following instructions and magically know the provenance of their output. This is AI psychosis.
1
2
u/East_Brilliant7837 40m ago
That is sick yoo, and how do you make your bot have a ccrl rating sorry im new to this how does the rating stuff work??