Skip to content

New features #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 24 commits into from
Jun 30, 2024
Merged

New features #1

merged 24 commits into from
Jun 30, 2024

Conversation

Sam-mhd
Copy link
Collaborator

@Sam-mhd Sam-mhd commented Jun 30, 2024

PR Title

New Version Of The Rock Paper Scissor - SheldonCooper

Summary

Sheldon Cooper from the TV show "The Big Bang Theory" introduced an extended version of the classic game Rock-Paper-Scissors, called Rock-Paper-Scissors-Lizard-Spock. This variation was designed to reduce the number of ties that occur in the original game. The rules are as follows:

Rock crushes Scissors and crushes Lizard
Paper covers Rock and disproves Spock
Scissors cuts Paper and decapitates Lizard
Lizard eats Paper and poisons Spock
Spock smashes Scissors and vaporizes Rock
This version of the game was created by Sam Kass and Karen Bryla to provide more outcomes and make the game more interesting.

Description

The changes are as follows:

Traditional Rock-Paper-Scissors:
Rock crushes Scissors.
Scissors cuts Paper.
Paper covers Rock.
Rock-Paper-Scissors-Lizard-Spock:
Rock crushes Scissors and crushes Lizard.
Scissors cuts Paper and decapitates Lizard.
Paper covers Rock and disproves Spock.
Lizard eats Paper and poisons Spock.
Spock smashes Scissors and vaporizes Rock.
Key Differences:
Number of Choices:

Traditional: 3 (Rock, Paper, Scissors).
Extended: 5 (Rock, Paper, Scissors, Lizard, Spock).
Interactions:

Traditional: Each choice interacts with the other two, leading to a total of 3 unique outcomes.
Extended: Each choice interacts with the other four, leading to a total of 10 unique outcomes.
Reduction of Ties:

The increased number of choices and interactions reduces the chances of both players choosing the same gesture, thereby decreasing the likelihood of a tie.
Increased Complexity:

Players need to remember more interactions and relationships between the gestures, adding an element of strategy and memory to the game.

Checks

in the repository

  • Made no changes that degrades the functioning of the repository
  • Gave each commit a better title (unlike updated README.md)

in the PR

  • Followed the format of the pull_request_template
  • Made the Pull Request in a small level (for the creator's wellfare)
  • Tested the changes you made

Thank You,

Saman Mahdian

Copy link
Owner

@bbob122 bbob122 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version of Rock Paper Scissors is running. The error handling is functioning as expected.

@nilkh75 nilkh75 merged commit 7f2cf85 into master Jun 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants