Answered step by step
Verified Expert Solution
Question
1 Approved Answer
design and implement a board game using inheritance and polymorphism. Description: For this programming project, you and your partner will be writing a Java application
design and implement a board game using inheritance and polymorphism.
Description: For this programming project, you and your partner will be writing a Java application that implements a board game that uses derived classes from an abstract class that represents a space on the game board. You are required to write the following classes:
- This should be an abstract class with one or more abstract methods. The class should at least have one abstract method called onLanding() that returns the adjustment on the players new position based on the type of the space.
- At least three derived classes from BoardSpace that represents different types of board spaces.
- A class that has at least one instance variable that represents a players position on the board.
- The Java application the implements the game. The game board should be instantiated and populated with the various types of board spaces defined in (2). The game board spaces may be statically or dynamically defined, depending on the board game you are implementing.
You may use the provided Die class that represents a six-sided game die.
Submission Requirements:
- You may choose to implement one of the following popular board games.
- Chutes and Ladders (Links to an external site.) (Links to an external site.)
- Candyland (Links to an external site.)
- The Game of Life (Links to an external site.)
- Sorry! (Links to an external site.)
- You may also choose to implement a board game that is not listed above upon instructor approval.
- You are required to work on this project in groups of size two (2). You may choose your partner but keep in mind that the future programming projects will also be in groups of two (2) and you will be REQUIRED to work with a DIFFERENT partner each time. If you are unable to find a partner, I can help you find one who is available.
- You are required to submit a written description of your choice of board game and a list of the classes you will be writing: base class, sub-classes, Java application. Due Date: Class time, Wednesday, February 5.
- Create a jar file of all your source code (ONLY). Call it your_names.jar. Upload your jar file.
- Provide sufficient documentation in the form of comments, white space, readable identifiers. You MUST include the names of both student members in all files.
- Submit a README (text) file describing the project design including:
- list of classes included
- how to compile and run your board game
- expected input and output
- rules of the game
- etc.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started