In this capstone, you’ll implement an HTTP server to play a popular variation of the classic game “Paper, Rock, Scissors!” called “Rock, Paper, Scissors, Lizard, Spock!” Two players each pick a symbol randomly, and the selected symbols determine who the winner is. The allowed moves are paper, rock, scissors, lizard, Spock, and they interact as follows:
Scissors cut paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitate lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, rock crushes scissors.
If both players pick the same symbol, your application will not select a winner and declare the game a tie. Figure 26.1 shows a visual representation of the rules.