Add Promotion
data class AddPromotion(moveGenerators: List<MoveGeneratorHex>, region: Region2D, promoPieces: List<PieceHex>, forced: Boolean) : MoveGeneratorHex
Content copied to clipboard
A piece can be promoted to another piece in a specific region
Constructors
AddPromotion
Link copied to clipboard
fun AddPromotion(move: MoveGeneratorHex, region: Region2D, promoPieces: List<PieceHex>, forced: Boolean)
Content copied to clipboard
AddPromotion
Link copied to clipboard
fun AddPromotion(moveGenerators: List<MoveGeneratorHex>, region: Region2D, promoPieces: List<PieceHex>, forced: Boolean)
Content copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
copy
Link copied to clipboard
fun copy(moveGenerators: List<MoveGeneratorHex>, region: Region2D, promoPieces: List<PieceHex>, forced: Boolean): MoveGeneratorHex.AddPromotion
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