CSC 352

Game Development

Lab 01 - Text Adventure Game

Overview

Use the command pattern to build a text adventure game.

Here is an example of a classic text adventure game called "Zork".

Your came doesn't need to be as sophisticated as Zork, but it should be your best effort. The grade you receive will correspond to which of the following objectives you meet:

85% Level:

Your text adventure should repeatedly ask the user for a command until they quit.

You should create at least 5 commands, not including "quit" and "help".

Every command should be a subclass of a Command object.

93% Level:

Store your commands in a data structure of your choice that will allow you to easily implement an Undo command. You should be able to undo all of the command that have been made, through the beginning of the game.

100% level:

Allow the player to Redo their commands that have been undone via the Undo command. You should be able to undo and redo an arbitrary number of times, always arriving back at the correct state.

Submission:

  1. Navigate to the folder containing your source code.
  2. Create a zip file with all of your .cpp and .h files.
  3. Upload that zip file to mySVU.

Hints

The following references might come in handy: