Homework 8, OPIGS Adventure Game.

Short Description:

Write a program that will simulate a simple role playing game.

This assignment is worth 40 points.

Goals

When you finish this homework, you should have:

Formal Description

For this assignment you are to implement a simple role playing game based on the OPIGS rules. To make the project easier to implement we will change these rules somewhat.

An adventure consists of a series of encounters. In this game, you could consider the encounters to be just steps along a path that does not branch or fork. The player starts and the beginning and proceeds to the first encounter. If they successfully complete this encounter they move to the next, continuing until the adventure is over.

Each encounter consists of both an opponent to fight and a challenge to overcome.

An opponent is described in the rules and is very much like a player described below.

Challenges are things like traps, puzzles, or physical barriers that the player must overcome.

When a player enters an encounter, they must first defeat the opponent then overcome the challenge. If they die in the attempt, then the game is over. If they succeed, they collect experience and treasure.

Once a player has earned sufficient experience they will level up. This process is described in the rules as well.

Players and Opponents