Let Betza parser understand true riding
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 3 Jan 2026 21:11:24 +0000 (22:11 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 5 Jan 2026 08:27:59 +0000 (09:27 +0100)
commit8cb6a88dc7d6bac96ec8c1ad29b5c0dacd896d52
tree9d3c4e74317949b1f76fd8f5b6efe6d804e9022c
parent32795fb239fea9f2e78b8c53b77315b3c5138137
Let Betza parser understand true riding

Riding moves like DD or AA were accepted by the Betza parser, but did not
work because no magics for those moves were available. By using custom
rides derived from the R and B masks then now do work: their basic leap
is reduced to a single step, but the squares they are supposed to skip are
then masked out of their magics mask and their pseudoAttacks.
  This allows specification of moves that ride along Queen rays with
stride 2 or 3. (So AA, DD, HH and GG.) Lame versions of these (e.g. nDD)
are also available: these would only mask the squares to be skipped out
of the pseudoAttacks, and use those with ordinary Rook and Bishop magics
which can still be blocked on those squares.
src/piece.cpp