NoCapture

data class NoCapture(moveGenerator: MoveGeneratorHex) : MoveGeneratorHex

A given move can only occur if it does not capture a piece

Constructors

NoCapture
Link copied to clipboard
fun NoCapture(moveGenerator: MoveGeneratorHex)

Functions

component1
Link copied to clipboard
operator fun component1(): MoveGeneratorHex
copy
Link copied to clipboard
fun copy(moveGenerator: MoveGeneratorHex): MoveGeneratorHex.NoCapture
equals
Link copied to clipboard
open operator override 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 override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

moveGenerator
Link copied to clipboard
val moveGenerator: MoveGeneratorHex