Slider

class Slider(directions: List<DirectionHex>) : MoveGeneratorHex

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

Constructors

Slider
Link copied to clipboard
fun Slider(directions: List<DirectionHex>)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
generate
Link copied to clipboard
open override fun generate(board: BoardHex, coordinate: Coordinate2D, piece: PieceHex, player: Player): List<BasicMoveHex>
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