Leaper3D

data class Leaper3D(dx: Int, dy: Int, dz: Int) : MoveGenerator3D

Performs single steps to specified target squares Takes in a step-vector, which is then mirrored to give a total of up to 8 target coordinates

Constructors

Leaper3D
Link copied to clipboard
fun Leaper3D(dx: Int, dy: Int, dz: Int)

Functions

component1
Link copied to clipboard
operator fun component1(): Int
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Int
copy
Link copied to clipboard
fun copy(dx: Int, dy: Int, dz: Int): MoveGenerator3D.Leaper3D
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
generate
Link copied to clipboard
open override fun generate(board: Board3D, coordinate: Coordinate3D, piece: Piece3D, player: Player): List<BasicMove3D>
Takes in the current board, the piece to be moved and its coordinate, and the player who makes the move to return all possible game moves corresponding to the given type of movement.
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

dx
Link copied to clipboard
val dx: Int
x component of the step-vector
dy
Link copied to clipboard
val dy: Int
y component of the step-vector
dz
Link copied to clipboard
val dz: Int