Role-Play Game

An rpg adventure game is much like a computerized version of "choose your own adventure". They eventually grew to have complex graphics and helped to lead to FPS games (First Person Shooter Games). However, you are to recreate an earlier, kinder, more-appropriate-for-the-school-setting version of the game. 

Start your player with a name and a scenario explaining what their goal is (find a magic sword or whatever). The player will then choose where they will go and the program responds to their decisions. If the player chooses to do something that is impossible in that location, they are not allowed to do it. Sometimes there are objects to pick up, things to do and puzzles to solve.

This is your major assignment for this unit. You need to include many extra features and write a program that shows off your programming skills. You will be handing in an electronic version of your code and any pictures that you use.

Some hints:

Marking:

Criteria

Low (0-1)

Limited (2)

Medium (3)

High (4)

Excellent (4+)

Ifs

 

Basic concepts developed. Requires assistance.

Student can complete the task with little assistance. Less than 7 choices.

Mastered concepts required to complete project. 7 choices provided to the user.

Game is well coded with many choices. Multiple choice, unscrambling, fill in the blank and many other question types are used.

Additional understanding acquired independently. (? statement or switch statement)

Loops

Basic concepts developed. Requires assistance.

Student can complete the task with little assistance. Can play again.

Mastered concepts required to complete project. Can play again.

Additional understanding acquired independently. (do while or for loops)

High attention to detail, much additional understanding acquired. (both do while and for)

Functionality Simple, not much to the game. 7 tasks appear. All are simple tasks. Well formatted, ASCII art. Good instructions to user. Additional understanding. Extra options (over 7 tasks). Interesting tasks, maybe a points system. Much additional understanding. Many added items. Maybe a dialog box or print slow or other extra features.
Comments None, few. Title comments (name, date, title) at the top. Comments before every major if and loop. Meaningful and Concise comments. New items are sourced at the top of the program.

Extra Features:

An example:

Some starter code:

//Name:
   //Date:
   //Purpose:
   //Sources:
public class rpgame
   {
   public static void main (String args[])
   {
   new rpgame ();
   }
 public rpgame ()
   {
   System.out.println ("Welecome to my game.");
   System.out.println ("This will become instructions and background information.");
   question1 ();
   }
 public void question1 ()
   {
   System.out.println ("\nThis is question 1. It is multiple choice.");
   System.out.println ("a) wrong choice");
   System.out.println ("b) good choice");
   System.out.println ("c) wrong choice");
   char input = IBIO.inputChar (">>");
   if (input == 'b')
   question2 ();
   else
   die ();
   }
 public void question2 ()
   {
   System.out.println ("\nThis is question 2. It is also multiple choice.");
   System.out.println ("a) good choice");
   System.out.println ("b) wrong choice");
   System.out.println ("c) wrong choice");
   char input = IBIO.inputChar (">>");
   if (input == 'a')
   question3 ();
   else
   die ();
   }
 public void question3 ()
   {
   System.out.println ("\nYou get the picture. Continue the pattern.");
   }
 public void die ()
   {
   System.out.println (" ____ ____ _ _ ____ ____ _ _ ____ ____ ");
   System.out.println (" | __ |__| |\\/| |___ | | | | |___ |__/ ");
   System.out.println (" |__] | | | | |___ |__| \\/ |___ | \\ ");
   }
}