Add Promotion
data class AddPromotion(moveGenerators: List<MoveGenerator3D>, region: Region3D, promoPieces: List<Piece3D>, forced: Boolean) : MoveGenerator3D
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: MoveGenerator3D, region: Region3D, promoPieces: List<Piece3D>, forced: Boolean)
Content copied to clipboard
AddPromotion
Link copied to clipboard
fun AddPromotion(moveGenerators: List<MoveGenerator3D>, region: Region3D, promoPieces: List<Piece3D>, 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<MoveGenerator3D>, region: Region3D, promoPieces: List<Piece3D>, forced: Boolean): MoveGenerator3D.AddPromotion
Content copied to clipboard
generate
Link copied to clipboard
open override fun generate(board: Board3D, coordinate: Coordinate3D, piece: Piece3D, player: Player): List<BasicMove3D>
Content copied to clipboard