Add Promotion
data class AddPromotion(moveGenerators: List<MoveGenerator2D>, region: Region2D, promoPieces: List<Piece2D>, forced: Boolean) : MoveGenerator2D
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: MoveGenerator2D, region: Region2D, promoPieces: List<Piece2D>, forced: Boolean)
Content copied to clipboard
AddPromotion
Link copied to clipboard
fun AddPromotion(moveGenerators: List<MoveGenerator2D>, region: Region2D, promoPieces: List<Piece2D>, 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<MoveGenerator2D>, region: Region2D, promoPieces: List<Piece2D>, forced: Boolean): MoveGenerator2D.AddPromotion
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