COSC.497.001, Spring 2005
C++ For Game Developers
Yoram Chisik  

Assignment 2
Elements of Choice and Control
Interactive Fiction


--- Class Links ---
Course Syllabus


Overview:

The objective of this exercise is to get your feet wet in some actual programming through the use of choice and control elements in the C++ programming language. Along the way you will have the opportunity to explore the complexities involved in developing a work of interactive fiction and the inherent spatial nature of such works.

The Exercise:

  • Develop the basic plot of your interactive fiction. You can come up with your own idea or use a character from a game, book, movie as a starting point.
  • Draw a tree diagram of your plot and the various options.
  • Develop the code for the flow of the interactive fiction based on your tree diagram.
  • Populate the code with the text of the story.
  • The tree of the plot must be at least 5 levels deep
  • Some forks can be terminated at lower levels but at least one fork must be 5 levels deep
  • All forks must be terminated in a manner that fits with the plot of the story, the story may not terminate abruptly with no explanation. The end must be built into the story.

Deliverables

  • A one page description of the story and plot line
  • The tree diagram illustrating the various forks in the story line.
  • C++ source file for the application (no need to include an exe file)

Submission Guidelines

  • All written work such as the application description should be submitted in digital form as a webpage, word document or adobe acrobat (pdf) file.
  • code should be well formatted, i.e. using white space, tabs and parentheses to make the code easy for the eye to see and read.
  • code should be well commented, its not enough for your application to work, I want to see your thought processes so include copious comments in your code explaining the choices you have made and the reasoning behind them.
  • Application should compile on Dev-C++ IDE on Windows XP

Due date

  • All files should be loaded to your folder on student-iat.ubalt.edu before the start of class on 03/02/05.
  • create a folder for the class
  • create a folder for assignment 2 and place all submission files there

Updated 2/15/05