Rice University - Comp 212 - Intermediate Programming

Spring 2004

Lecture #21 -  Koch Curve Design


Today's Menu

  1. UML Sequence diagrams for Hangman

  2. Discussion of the Koch Curve project

  3. Discussion of the Koch Curve lab.


1. UML Sequence Diagram

The UML class diagrams for the design of Hangman can only describe the static relationships between the various classes.  To illustrate the dynamic interactions between the various objects in the system at runtime, we use UML sequence diagrams.  Below are UML sequence diagrams depicting different scenarios in playing the game.

a. Correctly guess a character but still need to continue playing

b. Correctly guess a character and win

c. Incorrectly guess a character but still need to continue playing

d. Painting the body parts

 

e. The game is lost when the noose is drawn 


2. Koch Curve project

3. Koch Curve lab.


dxnguyen at rice.edu
Copyright 2004, Dung X. Nguyen - All rights reserved.
Last Revised 03/08/2004