mwg API
    Preparing search index...

    Function probeTablebase

    • Probes loaded endings for an exact position: its WDL outcome from the side to move's view with the distance, fifty-move-adjudicated against halfmove (a win too far to force in time comes back a draw, and likewise a distant loss). Pure and total: anything outside the shipped scope - pawns, rights, black extras, bare kings, an ending the game never loaded - is a miss (null).

      Parameters

      Returns TablebaseProbe | null

      import { probeTablebase, startingChess } from '@datamoc/mwg/board';

      console.log(probeTablebase({}, startingChess())); // null - no endings loaded, never an error