25,161
edits
Changes
no edit summary
==Move Enumeration==
===Per Piece and Square===
For the subset of common chess positions a faster encoding scheme is possible that doesn't require move generation of any kind. Let's enumerate the upper bound on the number of unique moves a piece of a given type can make from one [[Squares|square]] - for [[Sliding Pieces|sliding pieces]] assuming no obstacles:
{| class="wikitable"
<span id="Enumeration"></span>
===Over All Pieces and Squares===
Based on [[Influence Quantity of Pieces]] one may enumerate all moves, to specify a unique determined move number with respect to moving piece, from- and to squares, captured piece (if any) and promoted piece inside a 16-bit range.