module

Experion::See

Inherits Experion::Moves

Constants

VAL = StaticArray[100, 300, 320, 500, 900, 10000, 0]

Instance methods

see(pos : Position, m : UInt16) : Int32

Static exchange evaluation via the swap algorithm. Returns the material balance (from side's perspective... convention: gain for the side that captures first) of the capture sequence initiated by move m.

X-ray awareness: sliders recapture "through" vacated squares because the occupancy is updated per iteration and slider attacks recomputed lazily.

Source