Crafty UCI...

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Modern Times
Posts: 3898
Joined: Thu Jun 07, 2012 11:02 pm

Re: Crafty UCI...

Post by Modern Times »

A great initiative from Steve. If anyone doesn't like it, they are free just to ignore it. Easy.
Volker Pittlik
Posts: 631
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: Crafty UCI...

Post by Volker Pittlik »

Modern Times wrote: Tue Jun 23, 2026 8:26 am A great initiative from Steve. If anyone doesn't like it, they are free just to ignore it. Easy.
I agree 100%. Crafty was the first engine I fiddled around with except GNUChess. I'm looking forward to play some fun tournaments with it. Against new engines and older ones. Using all options with different books, learning on or off...

Volker
User avatar
jshriver
Posts: 1393
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Re: Crafty UCI...

Post by jshriver »

This is very nice and looking forward to playing it. I cut me teeth in comp chess starting with gnuchess and crafty around 1996 so it has a special place in my heart.

It has one feature I've never seen done elsewhere and used it a lot early in my chess carrer and that was the annotatet command which goes over your pgn game, annotates it, and generates a beautiful LaTeX file. Would love to see something like as a project of it's own.

-Josh
Peter Berger
Posts: 837
Joined: Thu Mar 09, 2006 2:56 pm

Re: Crafty UCI...

Post by Peter Berger »

Steve Maughan wrote: Mon Jun 22, 2026 9:41 pm At line 4,311 we see Bob's latest comments, or are these made by some other programmer?

I'd like to convert Bob's last official version of Crafty.

— Steve
This comment is clearly by Bob and shows that, up to the final version 25.6, he was the main author and in charge.
Volker Pittlik wrote: Tue Jun 23, 2026 10:29 am I agree 100%. Crafty was the first engine I fiddled around with except GNUChess. I'm looking forward to play some fun tournaments with it. Against new engines and older ones. Using all options with different books, learning on or off...

Volker
I share your sentiment that this is a cool release.

Crafty's book learner is certainly one of its more sophisticated features—it works. Given how different UCI is from WinBoard, I'd be curious whether the learning functionality still works exactly as intended in the UCI version.
User avatar
Steve Maughan
Posts: 1345
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: Crafty UCI...

Post by Steve Maughan »

Peter Berger wrote: Tue Jun 23, 2026 3:58 pm Crafty's book learner is certainly one of its more sophisticated features—it works. Given how different UCI is from WinBoard, I'd be curious whether the learning functionality still works exactly as intended in the UCI version.
I can't see how book learning could work in a UCI environment. UCI is fundamentally stateless. The engine will never know the results of the game. Undoubtedly, this is one of Bob's criticisms of UCI, and I guess a legitimate one.

— Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
Peter Berger
Posts: 837
Joined: Thu Mar 09, 2006 2:56 pm

Re: Crafty UCI...

Post by Peter Berger »

Yes, this is what I thought.

Slightly OT: some time ago Ed Schröder suggested a new kind of rating list that should include all kind of learning. He entered his own UCI engine, so I suspect it has to be possible?!
User avatar
Steve Maughan
Posts: 1345
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: Crafty UCI...

Post by Steve Maughan »

You could extend the UCI protocol to enable learning. The protocol already has a "newgame" command. An "endofgame" command could be sent to the engine with the game result and the moves. It may also need to indicate the side played by the engine.

Most rating lists use their own opening book, so I'm not sure it would be widely embraced.

— Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
User avatar
Steve Maughan
Posts: 1345
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: Crafty UCI...

Post by Steve Maughan »

Crafty 25.6.1 (UCI) — now built on the latest Crafty

A short follow-up to the original release, with two updates.

1) Crafty 25.6.1
When I posted the first version it was based on Crafty 25.2, which I thought was current. It wasn't — Bob had since put out 25.6. So I've rebased the entire UCI conversion onto upstream Crafty 25.6, the latest version. You get Bob's newer search and evaluation work between 25.2 and 25.6, with the UCI layer sitting on top exactly as before; nothing about how you use the engine changes.

The rebase was pleasingly clean — because the UCI code is purely additive and mode-gated, re-applying it onto 25.6 threw only a handful of tiny conflicts, all in the expected spots. It passes the same transcript and perft checks as the first release.

Download:
https://github.com/stevemaughan/Crafty- ... ag/v25.6.1

2) Jim Ablett's compiles are now in the 25.2.1 release
Jim Ablett very kindly produced a set of optimized builds, now attached to the 25.2.1 release — Windows, Linux and Android. That means Crafty-UCI now runs on Android as well (confirmed working in Droidfish and Chess for Android). My thanks to Jim for these.
https://github.com/stevemaughan/Crafty- ... ag/v25.2.1

One friendly note
I know a few of you feel that classic engines are best left exactly as they are, or have reservations about how this was put together. That's an entirely fair position and I won't try to argue anyone out of it — if it's not your cup of tea, please feel free to simply skip this thread; no hard feelings at all. For everyone who's been enjoying running Crafty in their GUI of choice, I hope you like the update.

— Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine