Class GameOverUpdate

All Implemented Interfaces:
Serializable

public class GameOverUpdate extends UserActionUpdate
A message of type UserActionUpdate sent by the server in order to notify the client of the end the game. The condition is met under a number of circumstances based on the players' actions and the status of the Board.
See Also:
  • Constructor Details

    • GameOverUpdate

      public GameOverUpdate(String winner)
  • Method Details

    • getWinner

      public String getWinner()
      A getter for the winner of the game.
      Returns:
      the username of the winner, if existent, or a literal representing a tie.