Tablebase descriptors

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Robert Pope
Posts: 558
Joined: Sat Mar 25, 2006 8:27 pm

Tablebase descriptors

Post by Robert Pope »

Is there a clear definition for describing potential tablebase files? Ones like KRK instead of KKR are pretty straightforward, but what about more complicated ones, like is it KQBNKRRNP or KRRNPKQBN? Is there an unambiguous correct way to list them, in general?
User avatar
phhnguyen
Posts: 1434
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Tablebase descriptors

Post by phhnguyen »

Typically sort order:
- the side has more pieces come first
- if two sides have same piece number, who has more material come first
- for each side, bigger piece comes first

For your example I think KRRNPKQBN is typically accepted.
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Tablebase descriptors

Post by Sven »

phhnguyen wrote: Mon Oct 08, 2018 4:19 am Typically sort order:
- the side has more pieces come first
- if two sides have same piece number, who has more material come first
- for each side, bigger piece comes first

For your example I think KRRNPKQBN is typically accepted.
But what exactly is "more material"? 9-5-3-3-1 based? E.g. KRRNKQBP would still be equal. The second sorting rule should be more like this:
"if two sides have the same number of pieces then the side with the biggest piece comes first"
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)
Sesse
Posts: 300
Joined: Mon Apr 30, 2018 11:51 pm

Re: Tablebase descriptors

Post by Sesse »

Lexicographic on strongest piece. So QPPP (or QNNN) is stronger than than RRRR.