Module app

Package app.utils.pieceplayer


package app.utils.pieceplayer
Utilities that allow interacting with game through individual pieces.
  • Class
    Description
    HotSeatPlayer<M extends Move<P>,P extends Piece>
    Creates and controls all game players at once allowing to connect pieces only once
    Thrown when an illegal move is attempted, e.g.
    InteractivePiece<M extends Move<P>,P extends Piece>
    Interface for moving single piece, to be used with external controllers such as UI.
    PieceSocket<M extends Move<P>,P extends Piece>
    Socket for interacting with game using individual pieces.
    PieceSpectator<M extends Move<P>,P extends Piece>
    PiecePlayer that only spectates the game i.e.
    StandalonePiecePlayer<M extends Move<P>,P extends Piece>
    Wraps single player allowing controlling it with individual pieces