Restricted
data class Restricted(moveGenerator: MoveGenerator2D, region: Region2D) : MoveGenerator2D
Content copied to clipboard
A given move can only occur when the piece starts in a specific region
Constructors
Restricted
Link copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
copy
Link copied to clipboard
fun copy(moveGenerator: MoveGenerator2D, region: Region2D): MoveGenerator2D.Restricted
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