Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# rock_paper_scissors_v2
Different approach in coading Rock-Paper-Scissors game

The 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