1. The program must utilize at least two classes. a. One class should be for a player (without a main method). This class should then be able to be instantiated for 1 or more players. b. The second class should have a main method that instantiates two players and controls the play of the game, either with its own methods or by instantiating a game class. c. Depending on the game, a separate class for the game may be useful. Then a class to play the game has the main method that instantiates a game object and 2 or more player objects. 2. The game must utilize arrays or ArrayList in some way. 3. There must be a method that displays the menu of turn options. 4. There must be a method that displays a player's statistics. These statistics should be cumulative if more than one game is played in a row. 5. There must be a method that displays the current status of the game. This will vary between games, but should include some statistics as appropriate for during a game. 6. All games must allow players the option to quit at any time (ending the current game as a lose to the player who quit) and to quit or replay at the end of a game.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
TECHNICAL REQUIREMENTS
1. The program must utilize at least two classes.
a. One class should be for a player (without a main method). This class should then be able to be
instantiated for 1 or more players.
b. The second class should have a main method that instantiates two players and controls the play
of the game, either with its own methods or by instantiating a game class.
c. Depending on the game, a separate class for the game may be useful. Then a class to play the
game has the main method that instantiates a game object and 2 or more player objects.
2. The game must utilize arrays or ArrayList in some way.
3. There must be a method that displays the menu of turn options.
4. There must be a method that displays a player's statistics. These statistics should be cumulative if more
than one game is played in a row.
5. There must be a method that displays the current status of the game. This will vary between games, but
should include some statistics as appropriate for during a game.
6. All games must allow players the option to quit at any time (ending the current game as a lose to the
player who quit) and to quit or replay at the end of a game.
GAME OPTIONS
1. Develop a console-based program that allows two players to play the obstruction game.
Transcribed Image Text:TECHNICAL REQUIREMENTS 1. The program must utilize at least two classes. a. One class should be for a player (without a main method). This class should then be able to be instantiated for 1 or more players. b. The second class should have a main method that instantiates two players and controls the play of the game, either with its own methods or by instantiating a game class. c. Depending on the game, a separate class for the game may be useful. Then a class to play the game has the main method that instantiates a game object and 2 or more player objects. 2. The game must utilize arrays or ArrayList in some way. 3. There must be a method that displays the menu of turn options. 4. There must be a method that displays a player's statistics. These statistics should be cumulative if more than one game is played in a row. 5. There must be a method that displays the current status of the game. This will vary between games, but should include some statistics as appropriate for during a game. 6. All games must allow players the option to quit at any time (ending the current game as a lose to the player who quit) and to quit or replay at the end of a game. GAME OPTIONS 1. Develop a console-based program that allows two players to play the obstruction game.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage