Move Generator2 D
interface MoveGenerator2D : MoveGenerator<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>
Content copied to clipboard
Implementation of the Move Generator interface for a 2d square board.
Types
AddPromotion
Link copied to clipboard
data class AddPromotion(moveGenerators: List<MoveGenerator2D>, region: Region2D, promoPieces: List<Piece2D>, forced: Boolean) : MoveGenerator2D
Content copied to clipboard
CaptureOnly
Link copied to clipboard
Composite
Link copied to clipboard
data class Composite(moveGenerators: List<MoveGenerator2D>) : MoveGenerator2D
Content copied to clipboard
Leaper
Link copied to clipboard
NoCapture
Link copied to clipboard
Restricted
Link copied to clipboard
data class Restricted(moveGenerator: MoveGenerator2D, region: Region2D) : MoveGenerator2D
Content copied to clipboard
RestrictedDestination
Link copied to clipboard
data class RestrictedDestination(moveGenerator: MoveGenerator2D, region: Region2D) : MoveGenerator2D
Content copied to clipboard
Skip
Link copied to clipboard
Functions
generate
Link copied to clipboard
abstract fun generate(board: Board2D, coordinate: Coordinate2D, piece: Piece2D, player: Player): List<Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>
Content copied to clipboard
Inheritors
Checkers
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard
MoveGenerator2D
Link copied to clipboard