Class Umpire


public class Umpire extends Object
Acts as the coordinator of the game.

The Umpire is responsible for collecting inputs from both the Guessor and Player, and determining the outcome of the game.

Responsibilities include:

  • Retrieving the guessed number from the Guessor.
  • Retrieving predicted numbers from all players.
  • Comparing values and declaring winner(s).

If one or more players correctly predict the number, they are declared winners. Otherwise, the game ends with no winners.

  • Constructor Details

    • Umpire

      public Umpire()