Move

dicechess.engine.domain.Move$package.Move
object Move

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Move.type

Members list

Value members

Concrete methods

def apply(from: Square, to: Square, flags: Int): Move

Constructs a new encoded Move from origin, destination, and flags.

Constructs a new encoded Move from origin, destination, and flags.

Attributes

def apply(from: Square, to: Square): Move

Constructs a new quiet Move.

Constructs a new quiet Move.

Attributes

Concrete fields

val BishopPromotion: Int
val Capture: Int
val DoublePawnPush: Int
val EnPassantCapture: Int
val KingCastle: Int
val KnightPromotion: Int
val QueenCastle: Int
val QueenPromotion: Int
val QuietMove: Int
val RookPromoCapture: Int
val RookPromotion: Int
val empty: Move

An empty or uninitialized move (a1 to a1).

An empty or uninitialized move (a1 to a1).

Attributes

Extensions

Extensions

extension (move: Move)
def flags: Int

Returns the 4-bit flag of the move.

Returns the 4-bit flag of the move.

Attributes

Returns the starting square of the move.

Returns the starting square of the move.

Attributes

def isCapture: Boolean

Returns true if the move is any type of capture.

Returns true if the move is any type of capture.

Attributes

def isCastling: Boolean

Returns true if the move is a castling move.

Returns true if the move is a castling move.

Attributes

def isEnPassant: Boolean

Returns true if the move is an en passant capture.

Returns true if the move is an en passant capture.

Attributes

def isPromotion: Boolean

Returns true if the move is any type of promotion.

Returns true if the move is any type of promotion.

Attributes

def toInt: Int

Returns the raw integer representation of the move.

Returns the raw integer representation of the move.

Attributes

Returns the destination square of the move.

Returns the destination square of the move.

Attributes