Class Umpire
java.lang.Object
Umpire
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Umpire
public Umpire()
-