Skip to content

Comments

Tablebase: Prepare 8 piece DTC support, tweak metric display, relax response parser#2287

Merged
veloce merged 5 commits intolichess-org:mainfrom
niklasf:tablebase-tweaks
Oct 24, 2025
Merged

Tablebase: Prepare 8 piece DTC support, tweak metric display, relax response parser#2287
veloce merged 5 commits intolichess-org:mainfrom
niklasf:tablebase-tweaks

Conversation

@niklasf
Copy link
Member

@niklasf niklasf commented Oct 23, 2025

  • Relax TablebaseEntry factory: Currently all JSON keys are always present, but that was undocumented and only intended to be guaranteed for moves, category, uci and san.
  • Code golf category split: Just filter the collection multiple times in addMoveSection, for slightly more concise code.
  • Query with 9 pieces to prepare for 8-piece tablebase: There may soon be information about 9-piece positions that have a capture leading to 8 pieces.
  • Fix display of zeroing move if only DTZ known: Due to small typo.
  • Order tablebase metric display: DTZ < DTC < DTM, because soon all three may be available for some positions.

@veloce
Copy link
Contributor

veloce commented Oct 24, 2025

Thanks!

@veloce veloce merged commit b7c11b1 into lichess-org:main Oct 24, 2025
1 check passed
@niklasf niklasf deleted the tablebase-tweaks branch October 24, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants