Saturday, February 17, 2007

TFD VS Finite State Machine

Test flow diagrams are usually used to test a certain sequence of detailed events. A finite state machine shows the different states an application can have. A state consists of different types of actions.

1. Entry state
2. Input state
3. Transition state
4. Exit state

This is a basic series of events in the hack and slash game

State
The player enters the game

Event
The player talks to the NPC quest giver

Action
Player accepts quest

Event
The player is on the quest

Event
The player approaches demon

Action
The player kills the demon

No comments: