UserPreferences

CS206Lab08


1. CS206 Lab08

Basic game operation. Your code this week should be able to play a basic adventure game. Here is an example game:

name::BMC Quest
author::Doug Blank
description::Explore Bryn Mawr College!
start::campus center
goal::dorm
location::campus center::You are at the campus center. The greens are to the south.
location::greens::You are at the greens. The campus center is north, and the dorms are south.
location::dorm::You made it home!
object::key::a golden key::greens
object::banana::a golden banana::greens
command::two way::campus center::greens::south::north
command::two way::greens::dorm::south::north

Here is what it might look like:

Welcome to BMC Quest, A game by Doug Blank.

Explore Bryn Mawr College!

You are at the campus center. The greens are to the south.
>>> south
You are at the greens. The campus center is north, and the dorms are south.
You see a golden key, a golden banana.
>> north
You are at the campus center. The greens are to the south.
>>> south
You are at the greens. The campus center is north, and the dorms are south.
You see a golden key, a golden banana.
>> south
You made it home!
(game exits)

The goal of this assignment is to get the basic game functioning.

Please turn in your code, your .game file, and an example of your code running.