Slider3D

class Slider3D(X: Boolean, Y: Boolean, Z: Boolean, D2D: Boolean, AD2D: Boolean, D: Boolean, D3D: Boolean) : MoveGenerator3D

Moves along a ray direction until they encounter another piece or the edge of the board

Constructors

Slider3D
Link copied to clipboard
fun Slider3D(X: Boolean = false, Y: Boolean = false, Z: Boolean = false, D2D: Boolean = false, AD2D: Boolean = false, D: Boolean = false, D3D: Boolean = false)

Functions

equals
Link copied to clipboard
open operator 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 fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

AD2D
Link copied to clipboard
val AD2D: Boolean = false
D
Link copied to clipboard
val D: Boolean = false
D2D
Link copied to clipboard
val D2D: Boolean = false
D3D
Link copied to clipboard
val D3D: Boolean = false
X
Link copied to clipboard
val X: Boolean = false
true if it can move along X axis
Y
Link copied to clipboard
val Y: Boolean = false
true if it can move along Y axis
Z
Link copied to clipboard
val Z: Boolean = false
true if it can move along Z axis