-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a rock paper scissors game in python #174
Comments
You may have played rock paper scissors before. Maybe you’ve used it to decide who pays for dinner or who gets first choice of players for a team. If you’re unfamiliar, rock paper scissors is a hand game for two or more players. Participants say “rock, paper, scissors” and then simultaneously form their hands into the shape of a rock (a fist), a piece of paper (palm facing downward), or a pair of scissors (two fingers extended). The rules are straightforward: Rock smashes scissors. |
Now that you have the rules down, you can start thinking about how they might translate to Python code |
import random user_action = input("Enter a choice (rock, paper, scissors): ") if user_action == computer_action: |
i would suggest this repository's method of doing this tbh,https://github.com/superking816pro/rock-paper-sissor-spock |
No description provided.
The text was updated successfully, but these errors were encountered: