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.
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.
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
Related questions
Concept explainers
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage