Skip to content

Simple Rock Paper Scissors game on Python 3 console.

License

Notifications You must be signed in to change notification settings

weltonfelix/RockPaperScissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors

Simple Rock Paper Scissors game on Python 3 console.

Github language counter Repo size Made by Welton Last commit Issues License

🔧 How it works?

I used random library to randomize computer choice. The user types his option, a logical test is performed to know the result and what should be printed on screen. If the user inputs one of the key-words (stopOptions = ["Parar", "Encerrar","Finalizar", "Pare", "Fim"]) choosed to stop the game, the game is stopped and the final results is shown.

Game

💡 Easter Eggs

The game has some easter eggs from the tv show "The Big Bang Theory". The user can also choose "Lizard" or "Spock": possibleChoices = [rock, paper, scissors, lizard, spock] However, the computer cannot choose the easter eggs objects, so interactions between "Lizard" and "Spock" are not available.

📓 Rules:

  1. Equal objects tie.
  2. Diferent objects:
    1. Rock
      • Is covered by the Paper (-)
      • Crushes Scissors (+)
      • Crushes Lizard (+)
      • Is vaporized by Spock (-)
    2. Paper
      • Covers Rock (+)
      • Is cutted by Scissors (-)
      • Is eated by the Lizard (-)
      • Disproves Spock (+)
    3. Scissors
      • Is crushed by the Rock (-)
      • Cuts the Paper (+)
      • Decapitates the Lizard (+)
      • Is smashed by Spock (-)
    4. Lizard
      • Is crushed by the Rock (-)
      • Eats the Paper (+)
      • Is decapitated by Scissors (-)
      • Poisons Spock (+) (As the computer cannot choose easter egg options, this option is unavailable)
    5. Spock
      • Vaporizes the Rock (+)
      • Is disproved by the Paper (-)
      • Smashes the Scissors (+)
      • Is poisoned by the Lizard (-) (As the computer cannot choose easter egg options, this option is unavailable)

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

  • Make a fork;
  • Create a branck with your feature: git checkout -b my-feature;
  • Commit changes: git commit -m 'feat: My new feature';
  • Make a push to your branch: git push origin my-feature.

After merging your receipt request to done, you can delete a branch from yours.

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is under the MIT license. See the LICENSE for details.


Made with ♥ by Welton Felix 👋 Get in touch!