Game Type
interface GameType<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>
Content copied to clipboard
Represents a game variant.
Controls the flow of a game and keeps track of all the moves in the move log, which player has the current turn and the final result of the game.
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
getCurrentPlayer
Link copied to clipboard
getNextPlayer
Link copied to clipboard
getOpponentPlayers
Link copied to clipboard
getOutcome
Link copied to clipboard
getValidMoves
Link copied to clipboard
nextPlayer
Link copied to clipboard
playerMakeMove
Link copied to clipboard
prevPlayer
Link copied to clipboard
Properties
Inheritors
GameType2D
Link copied to clipboard
GameType2P
Link copied to clipboard
GameType3D
Link copied to clipboard
GameTypeHex
Link copied to clipboard