Question: A game scoring system has two classes (among others) called Game and ScoreBoard. The ScoreBoard displays details from the Game class. The Game has the

A game scoring system has two classes (among others) called Game and ScoreBoard. The ScoreBoard displays details from the Game class. The Game has the following fields- quarter (a value between 1-4), pointsHome (an integer), pointsAway (an integer), currentTeam (a String "Team Home" or "Team Away" The ScoreBoard displays the latest state of the game as follows Game in progress: Current Quarter:2 Points: Home: 7 Away: 10 Current Team: Team Home The Game class should notify the ScoreBoard whenever any of the values change. Implement the following Game class ScoreBoard class. Use any additional interfaces/ classes as needed. (Hint: What pattern are you implementing?) Focus on the pattern implementation than the output formatting (you may even assume that there is a displayScore function that takes care of the output)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
