CS/IMGD 4100 (C 16)

Homework Assignment #2

Bar Fly

Due by Web Turn-In: 11:59pm, Wednesday, January 20

(See general homework instructions for turn-in details.)

The purpose of this assignment is to familiarize you with the code in Chapter 2 for state machines with messaging. You will modify the code in the WestWorld/WestWorldWithMessaging folder to add a new character into this simulation, creating his state machine and altering the Miner code to respond to him.

The new character is Sal, the Bar Fly. Sal is in the Saloon at game initialization and never leaves it. His finite state machine looks like this:


Here's some implementation tips:

What to Turn In

Grading

Please post any questions to the myWPI forum for the course.

Acknowledgement: I would like to thank Robin Burke for allowing the reuse of this assignment.