Stepper
data class Stepper(directions: List<DirectionHex>, step: Int, canCapture: Boolean) : MoveGeneratorHex
Content copied to clipboard
Performs single (repeated) steps in a particular board direction
Constructors
Stepper
Link copied to clipboard
fun Stepper(direction: DirectionHex, step: Int, canCapture: Boolean = false)
Content copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
copy
Link copied to clipboard
fun copy(directions: List<DirectionHex>, step: Int, canCapture: Boolean = false): MoveGeneratorHex.Stepper
Content copied to clipboard
generate
Link copied to clipboard
open override fun generate(board: BoardHex, coordinate: Coordinate2D, piece: PieceHex, player: Player): List<BasicMoveHex>
Content copied to clipboard