Restricted Destination
data class RestrictedDestination(moveGenerator: MoveGenerator2D, region: Region2D) : MoveGenerator2D
Content copied to clipboard
A given move can only occur if the destination is within a specific region
Constructors
RestrictedDestination
Link copied to clipboard
fun RestrictedDestination(moveGenerator: MoveGenerator2D, region: Region2D)
Content copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
copy
Link copied to clipboard
fun copy(moveGenerator: MoveGenerator2D, region: Region2D): MoveGenerator2D.RestrictedDestination
Content copied to clipboard
generate
Link copied to clipboard
open override fun generate(board: Board2D, coordinate: Coordinate2D, piece: Piece2D, player: Player): List<BasicMove2D>
Content copied to clipboard