Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Lizard Spock

PowerShell

Description

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


Content in English

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!

Ange tal Enter numbers

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:

dotCMS logo


Everything in this game is built on WHILE. You can also see how I wrote it using FUNCTION here.


Did You Know?

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".


Up

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages