CaptureOnly

data class CaptureOnly(moveGenerator: MoveGenerator3D) : MoveGenerator3D

A given move can only occur if it captures a piece

Constructors

CaptureOnly
Link copied to clipboard
fun CaptureOnly(moveGenerator: MoveGenerator3D)

Functions

component1
Link copied to clipboard
operator fun component1(): MoveGenerator3D
copy
Link copied to clipboard
fun copy(moveGenerator: MoveGenerator3D): MoveGenerator3D.CaptureOnly
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

moveGenerator
Link copied to clipboard
val moveGenerator: MoveGenerator3D
the move to