Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iriw/rock_paper_scissors_v2
Different approach in coading Rock-Paper-Scissors game
https://github.com/iriw/rock_paper_scissors_v2
Last synced: about 2 months ago
JSON representation
Different approach in coading Rock-Paper-Scissors game
- Host: GitHub
- URL: https://github.com/iriw/rock_paper_scissors_v2
- Owner: IriW
- Created: 2021-09-10T08:44:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-10T08:53:22.000Z (over 3 years ago)
- Last Synced: 2024-11-19T12:18:32.969Z (2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rock_paper_scissors_v2
Different approach in coading Rock-Paper-Scissors gameThe final output doesn't really differ from the first version here https://github.com/IriW/rock_paper_scissors_game, but the logic behind it differs resulting the same user experience with less code.
The user should type '0' for Rock, '1' for Paper or '2' for Scissors. Computer randomly choses one of those 3 values too.
Rock, Paper and Scissors build the list from which both user and computer chose.
Values other then 0-2 are not valid and give an error.Here's how it works:
https://user-images.githubusercontent.com/32927392/132827897-54358f26-6d32-4d11-9a1b-ae477cfb5354.mov