Move Generator Hex
interface MoveGeneratorHex : MoveGenerator<BoardHex, MoveGeneratorHex, PieceHex, 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<MoveGeneratorHex>, region: Region2D, promoPieces: List<PieceHex>, forced: Boolean) : MoveGeneratorHex
Content copied to clipboard
CaptureOnly
Link copied to clipboard
data class CaptureOnly(moveGenerator: MoveGeneratorHex) : MoveGeneratorHex
Content copied to clipboard
Composite
Link copied to clipboard
data class Composite(moveGenerators: List<MoveGeneratorHex>) : MoveGeneratorHex
Content copied to clipboard
Leaper
Link copied to clipboard
NoCapture
Link copied to clipboard
Restricted
Link copied to clipboard
data class Restricted(moveGenerator: MoveGeneratorHex, region: Region2D) : MoveGeneratorHex
Content copied to clipboard
RestrictedDestination
Link copied to clipboard
data class RestrictedDestination(moveGenerator: MoveGeneratorHex, region: Region2D) : MoveGeneratorHex
Content copied to clipboard
Slider
Link copied to clipboard
Stepper
Link copied to clipboard
data class Stepper(directions: List<DirectionHex>, step: Int, canCapture: Boolean) : MoveGeneratorHex
Content copied to clipboard
Functions
generate
Link copied to clipboard
abstract fun generate(board: BoardHex, coordinate: Coordinate2D, piece: PieceHex, player: Player): List<Move<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>>
Content copied to clipboard
Inheritors
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard