MoveGenerator

interface MoveGenerator<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>

Represents a type of the movement of pieces.

Parameters

B

the type of a board.

MG

the type of a move generator.

P

the type of a piece.

C

the type of a coordinate.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
generate
Link copied to clipboard
abstract fun generate(board: B, coordinate: C, piece: P, player: Player): List<Move<B, MG, P, C>>
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

Inheritors

MoveGenerator2D
Link copied to clipboard
MoveGenerator3D
Link copied to clipboard
MoveGeneratorHex
Link copied to clipboard