Homework 4 - D n D Characters

Introduction

In this homework, you will practice:

Problem Description

After hearing that you have taken the best class at Georgia Tech, CS 1331, an important video game company has hired you to develop the framework for their latest video game, Fantasy Quest 3: Return of Zardaneck.

Solution Description

Download the abstract class Character.java. Implement all the missing methods of the abstract class, as well as implementing the subclasses Fighter.java, Rogue.java, Wizard.java, and Cleric.java. You will need to create these other classes from scratch.

Do not modify the code we give you.

Character.java

Fighter.java

Rogue.java

Cleric.java

Wizard.java

Grading

Running and Testing

Creating a Game class with a main method to create a simulation to test of all the methods would be the best course of action. Do not submit this.

Tips and Considerations

If anything seems confusing, read through the entire description and instructions again. As always, feel free to contact your TAs, post on Piazza, or come in for office hours. In addition, here are some tips specific to this homework:

Import java.util.Random, but not anything that trivializes the assignment.

Use the java API when you need help thinking of how to do something.

Test things out in jshell!

Javadocs

You will need to write Javadoc comments and watch for checkstyle errors with your submission.

See the CS 1331 Style Guide for details.

Checkstyle

For each of your homwork assignments we will run checkstyle and deduct one point for every checkstyle error.

For this homework the checkstyle cap is 50, meaning you can lose up to 50 points on this assignment due to style errors. This limit will increase on the next homework.

Collaboration

When completing homeworks for CS1331 you may talk with other students about:

Examples of approved/disapproved collaboration:

OKAY: “Hey, I’m really confused on how we are supposed to implement this part of the homework. What strategies/resources did you use to solve it?”

BY NO MEANS OKAY: “Hey… the homework is due in like 20 minutes… Can I see your code? I promise won’t copy it directly!”

In addition to the above rules, note that it is not allowed to upload your code to any sort of public repository. This could be considered an Honor Code violation, even if it is after the homework is due.

Submission