IMGD 400X (B 09)

Homework Assignment #3

Tank States

Due by Web Turn-In: Midnight, Wednesday, November 4

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

The purpose of this assignment is to gain experience formalizing a modestly complicated AI behavior as a finite state machine. Imagine that you are an AI developer in a game company and one of the designers has given you the textual tank behavior specification below. Your job is to formalize the behavior as a state machine clearly enough so that your documentation could be handed off to a low-level programmer to implement (who may be you!).

Here are the basic steps and work products you should go through:

  1. Create a table that describes each state, the game properties it references, and the actions that occur in that state.

  2. Create a table of conditions (boolean functions) that will be used to control transition between states.

  3. Draw a "bubble and arrow" diagram for the finite state machine.
Remember, this is a detailed design document, not an implementation. At this level of design, don't worry about variable names, which information is stored in state instances vs. game entities (singleton state implementation), etc.

Finally, don't be surprised if you discover during the formalization process that the textual behavior specification below is incomplete (that's typical and part of the goal of formalization). Make reasonable decisions on the incomplete cases and document them.

Tank Behavior Specification

Initialization Combat Termination

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.