Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please include comments for the every line of the code written,Language to be used is java using oop concept In Java, write a text-based adventure

please include comments for the every line of the code written,Language to be used is java using oop concept image text in transcribed
In Java, write a text-based adventure game (similar to Zork) in which the player can successively choose different paths to arrive at his or her destination. Your program should contain: At least 4 classes apart from the main class. Those classes have to be useful and used) in your program. At least 2 interfaces which are each implemented by at least 1 class. At least 30 choices for the player to make. Note that those choices can't be be given to the player all at once; a player should receive a maximum of three choices at once. For example, a player might be presented with two choices, then three, then two... Javadocs for all of the attributes and methods. Also note that: The main method itself should not contain more than 10 lines of code; the rest of your code must be contained within methods that are called by the main method. The number of choices made by the player has to counted and printed to the screen at the end of the game. The player has a name, a gender, an age and a birth date, chosen by the user at the beginning of the game. At least 2 classes must be used to create obstacles for the player to overcome. Grading The quality of the code indentations; names of the attributes, methods, classes and interfaces): 6 points The number of classes and their usage: 12 points The number of interfaces and their usage: 6 points Having a game which works as intended (processing player's inputs, especially when it comes to obstacles): 6 points Total: 30 points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions