PassedPawns

dicechess.engine.search.PassedPawns
object PassedPawns

Shared-core primitive for detecting and evaluating passed pawns for an explicit perspective color.

Uses the standard chess definition: a pawn is passed if there are no opposing pawns on the same file or on any adjacent file on any square ahead of the pawn along its direction of advance.

The evaluation perspective is the explicit color argument, independent of state.activeColor and the dice pool.

Attributes

Source
PassedPawns.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def bitboard(state: GameState, color: Color): Bitboard

Returns a dicechess.engine.domain.Bitboard of all passed pawns belonging to color.

Returns a dicechess.engine.domain.Bitboard of all passed pawns belonging to color.

Attributes

Source
PassedPawns.scala
def count(state: GameState, color: Color): Int

Attributes

Source
PassedPawns.scala
def countAndMaxRank(state: GameState, color: Color): (Int, Int)

Attributes

Source
PassedPawns.scala
def maxRank(state: GameState, color: Color): Int

Returns the rank of the most advanced passed pawn for color, counted from that side's own back rank as 0 (so 1–6 for a pawn, and 0 when the side has no passed pawn).

Returns the rank of the most advanced passed pawn for color, counted from that side's own back rank as 0 (so 1–6 for a pawn, and 0 when the side has no passed pawn).

Attributes

Source
PassedPawns.scala