Use case name: 2-player Gomoku game
Context of use: A single-sitting of two persons at a
computer to play one or more games of Gomoku. The computer manages
the display of the game, enforces the rules, indicates the winner of
each game, and keeps the overall score.
Software Product Name: CGomoku
Primary Actor: player
Trigger:One player initiates program.
Main Success Scenario:
(Actors are two Players. One player is designated Player1 and the
other is designated Player2).
1. System resets score to 0/0.
Steps 2 - 7 occur in sequence until players indicate they are
finished.
2. System displays empty Gomoku board, and indicates Player1 is
current player.
3. Current player selects move.
4. System validates move.
5. System updates board with move and redisplays board.
6. System validates that a win has occured.
7. System announces winner, updates and redisplays score.
8. System exits
Extensions:
4a. Cell already occupied or out of bounds
4a1. System informs player, reprompts.
4a2. Continue at 3 above.
6a. A draw has occurred
6a1. System informs players.
6a2. Continue at 2 above.
6b. No win has occurred
6b1. System informs players.
6b2. System makes waiting player be current player.
Continue at 3 above.