Restricted
data class Restricted(moveGenerator: MoveGeneratorHex, region: Region2D) : MoveGeneratorHex
Content copied to clipboard
A given move can only occur when the piece starts in a specific region
Constructors
Restricted
Link copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
copy
Link copied to clipboard
fun copy(moveGenerator: MoveGeneratorHex, region: Region2D): MoveGeneratorHex.Restricted
Content copied to clipboard
generate
Link copied to clipboard
open override fun generate(board: BoardHex, coordinate: Coordinate2D, piece: PieceHex, player: Player): List<BasicMoveHex>
Content copied to clipboard