Zebra0.com

systems object-modelingRock, Paper, Scissors: Decision table

Rock, Paper, Scissors: Decision table

Rock, paper scissors is a well known game in the United States.
Two players count 1, 2, 3,
then each throw down one hand as a rock (closed fist),
paper (all fingers out), or scissors (two fingers out).

The winner is as follows:

Paper beats rock. (Paper covers rock)
Scissors beats paper. (Scissors cuts paper)
Rock beats scissors. (Rock crushes scissors)

If the two are the same it is a tie.

Her is the decision table :

Player A Player B Result
rock rock tie
rock paper B wins
rock scissors A wins
paper rock A wins
paper paper tie
paper scissors B wins
scissors rock B wins
scissors paper A wins
scissors scissors tie

NEXT: Decision Table: Office Assistant Step 1