CompositeMove

data class CompositeMove<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>(moves: List<Move.SimpleMove<B, MG, P, C>>, player: Player) : Move<B, MG, P, C>

A wrapper around a list of simple moves to represent composite moves

Constructors

CompositeMove
Link copied to clipboard
fun <B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate> CompositeMove(moves: List<Move.SimpleMove<B, MG, P, C>>, player: Player)

Functions

component1
Link copied to clipboard
operator fun component1(): List<Move.SimpleMove<B, MG, P, C>>
component2
Link copied to clipboard
operator fun component2(): Player
copy
Link copied to clipboard
fun copy(moves: List<Move.SimpleMove<B, MG, P, C>>, player: Player): Move.CompositeMove<B, MG, P, C>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

displayFrom
Link copied to clipboard
open override var displayFrom: C? = null
displayPieceCaptured
Link copied to clipboard
open override var displayPieceCaptured: P? = null
displayPieceMoved
Link copied to clipboard
open lateinit override var displayPieceMoved: P
displayPiecePromotedTo
Link copied to clipboard
open override var displayPiecePromotedTo: P? = null
displayTo
Link copied to clipboard
open override var displayTo: C? = null
moves
Link copied to clipboard
val moves: List<Move.SimpleMove<B, MG, P, C>>
player
Link copied to clipboard
open override val player: Player