MicroMove

dicechess.engine.domain.Models$package.MicroMove
object MicroMove

A high-performance 16-bit packed micro-move.

Memory Layout:

Attributes

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

Members list

Value members

Concrete methods

def apply(from: Square, to: Square, promotion: Option[PieceType] = ...): MicroMove

Attributes

Source
Models.scala

Givens

Givens

Extensions

Extensions

extension (mv: MicroMove)
inline def from: Square

Origin square (bits 0–5).

Origin square (bits 0–5).

Attributes

Source
Models.scala
def promotion: Option[PieceType]

Promotion piece type (bits 12–15), or None if this is not a promotion move.

Promotion piece type (bits 12–15), or None if this is not a promotion move.

Attributes

Source
Models.scala
inline def to: Square

Destination square (bits 6–11).

Destination square (bits 6–11).

Attributes

Source
Models.scala
def toNotation: String

Long algebraic notation string, e.g. "e2e4" or "e7e8q" for a queen promotion.

Long algebraic notation string, e.g. "e2e4" or "e7e8q" for a queen promotion.

Attributes

Source
Models.scala