Move

sealed class Move<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>

Types

CompositeMove
Link copied to clipboard
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
SimpleMove
Link copied to clipboard
sealed class SimpleMove<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate> : Move<B, MG, P, C>

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

displayFrom
Link copied to clipboard
abstract val displayFrom: C?
displayPieceCaptured
Link copied to clipboard
abstract var displayPieceCaptured: P?
displayPieceMoved
Link copied to clipboard
abstract var displayPieceMoved: P
displayPiecePromotedTo
Link copied to clipboard
abstract var displayPiecePromotedTo: P?
displayTo
Link copied to clipboard
abstract var displayTo: C?
player
Link copied to clipboard
open val player: Player

Inheritors

Move
Link copied to clipboard
Move
Link copied to clipboard