PAPER ROCK
SCISSORS LIZARD SPOCK
Write a program that will run a game of Paper Rock
Scissors Lizard Spock. The
explanation of who wins when is shown below:
SAMPLE OUTPUT
Player
1’s turn. Player 2 needs to look
away.
Player
1, make your choice (sp, li, ro,
pa, sc).
sp
<screen
is cleared>
Player
2’s turn.
Player
2, make your choice (sp, li, ro,
pa, sc).
sc
<screen
is cleared>
Player
1 chose spock.
Player 2 chose scissors.
Spock smashes scissors. Player 1
wins.
HINTS
Remember
to deal with all situations. Make
sure you test every situation.
Make sure to deal with ties.
EXTRA CRITERIA (TO GET 100%)
Alter the game so that it is
Paper Rock Scissors Lizard Spock Campeau.
However, choosing Campeau isn’t a visible option. If you choose Campeau, you always win no
matter what. It's like
god-mode! J
SAMPLE OUTPUT
Player
1’s turn. Player 2 needs to look
away.
Player
1, make your choice (sp, li, ro,
pa, sc).
sp
<screen
is cleared>
Player
2’s turn.
Player
2, make your choice (sp, li, ro,
pa, sc).
ca
<screen
is cleared>
Player
1 chose spock.
Player 2 chose campeau.
Campeau always wins because he
marks this stuff. Player 2 wins.
|