Package breitband.game.players
Provides the player logic of the game.
The board logic uses an object-oriented style.
The base player is SPlayer
. Here are all methods and attributes situated which all players need.
All other players inherit from SPlayer. in the case of CheatingAIPlayer indirectly through RandomAIPlayer.
SPlayer implements the Player interface of breitband-preset-player
Each Turn of any player is verified by every other player. If any discrepancies are found by any player the player throws an Exception.
This could be either a IllegalTurnException
or a InvalidGameResultException
.
The exception will give some more details to what went wrong.
-
Class Summary Class Description CheatingAIPlayer Class for cheatingAIPlayer that cheats 50% of the time and acts like randomAI 50% of timeHumanPlayer Class for Human playersRandomAIPlayer This class provides an Ai-player which makes random moves.SPlayer Class containing all the information and methods needed for players regardless of type -
Exception Summary Exception Description IllegalTurnException class exception to be thrown when an illegal turn occursInvalidGameResultException Class for errors which occur when the end-result is invalid