Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Overview This week we will be building classes to represent objects like you'd find in an old-time, text-base RPG game. We need a basic, underlying

image text in transcribedimage text in transcribed

Overview This week we will be building classes to represent objects like you'd find in an old-time, text-base RPG game. We need a basic, underlying item that has a name and a weight. We will extend it with food, weapon, and armor classes. We will also need a rudimentary character to test the item classes with. Last week you produced a UML diagram for an RPG inventory. This week you will implement the classes in your diagram. Test Make a main class to instantiate some characters and items. Then thoroughly test your classes. Use print statements where needed to make it clear what is happening when you run your program. Overview This week we will be building classes to represent objects like you'd find in an old-time, text-base RPG game. We need a basic, underlying item that has a name and a weight. We will extend it with food, weapon, and armor classes. We will also need a rudimentary character to test the item classes with. Last week you produced a UML diagram for an RPG inventory. This week you will implement the classes in your diagram. Test Make a main class to instantiate some characters and items. Then thoroughly test your classes. Use print statements where needed to make it clear what is happening when you run your program

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

More Books

Students also viewed these Databases questions