IMGD 400X (B 08)

Homework Assignment #2

Bar Fly

Due by Web Turn-In: Midnight, Sunday, November 2

(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 never leaves the Saloon. His finite state machine looks like this:


Here's some implementation tips:

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.