Module app
Package app.core.game

Interface Game<M extends Move<P>,P extends Piece>

Type Parameters:
M - type of move that is used by the implementation
P - type of piece that is used by the implementation
All Superinterfaces:
GameView<M,P>
All Known Implementing Classes:
Checkers, Chess, InteractiveGame, Minesweeper

public interface Game<M extends Move<P>,P extends Piece> extends GameView<M,P>
Interface of any game the application can play.
Extends GameView with functionality that can alter state of the game.
  • Method Details

    • makeMove

      List<P> makeMove(int player, M move)
      Makes the move as the player