This is a challenging single-player game against the computer. You need to choose one number, the computer also chooses a random number. The winner is the one who wins in 5 rounds with a score of 5:0, 4:1 or 3:2. After this, the game writes who won and with what result
P.S.The text in the game is in Swedish
Welcome to play RPS!
- Write 1 for Rock (Sten beats Scissors and Lizard)
- Write 2 for Scissors (Scissors beats Paper and Lizard)
- Write 3 for Paper (Paper beats Stone and Spock)
- Write 4 for Lizard (Lizard beats Paper and Spock)
- Write 5 for Spock (Spock beats Rock and Scissors)
Good luck!
If you entered incorrectly, you will see the message: Write 1, 2 or 3
Dator This is a random choice of computer
Remi! If your values are equal
Du vann! You won!
Du förlorade! You lost!
If you win 5 rounds with a score of 5:0, 4:1 or 3:2:
Grattis, du vann! Resultat: Congratulations, you won! Results:
If you lost in 5 rounds with a score of 5:0, 4:1 or 3:2:
Tyvärr, förlorade du. Resultat: Sorry, you lost. Results:
Everything in this game is built on WHILE. You can also see how I wrote it using FUNCTION here.
The game "rock, paper, scissors, lizard, Spock" was invented in 2005 by Sam Klemens and Karen Bryla. This version of the classic "rock, paper, scissors" game expands the possible moves by adding two additional gestures (lizard and Spock) and determining which combinations beat others. It became popular among geek and science fiction fan circles and is often referenced in pop culture, including the popular TV show "The Big Bang Theory".
