10000 SumanManna96 · GitHub
[go: up one dir, main page]

Skip to content
View SumanManna96's full-sized avatar

Block or report SumanManna96

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
SumanManna96/README.md

import random

print("1. Rock\n2. Paper\n3. Scissors")

while True: computer_choice = random.randint(1, 3) player_choice = int(input("Enter your choice (1/2/3): "))

print(f"Computer chose: {computer_choice}")

player_win = False

if player_choice == 1 and computer_choice == 2:
    player_win = False
    print("You chose rock and the computer chose paper.")
    print("You got covered by paper. You lost.")
elif player_choice == 2 and computer_choice == 1:
    player_win = True
    print("You chose paper and the computer chose rock.")
    print("You covered the rock. You won!")
elif player_choice == 2 and computer_choice == 3:
    player_win = False
    print("You chose paper and the computer chose scissors.")
    print("The computer cut you down. You lost.")
elif player_choice == 3 and computer_choice == 2:
    player_win = True
    print("You chose scissors and the computer chose paper.")
    print("You tore down the computer. You won!")
elif player_choice == 3 and computer_choice == 1:
    player_win = False  
    print("You chose scissors and the computer chose rock.")
    print("You got crushed by the rock. You lost.")
elif player_choice == 1 and computer_choice == 3:
    player_win = True
    print("You chose rock and the computer chose scissors.")
    print("You smashed the computer. You won!")

SumanManna96/SumanManna96 is a ✨ special ✨ repository because its README.md (this file) appears on your GitHub profile. You can click the Preview link to take a look at your changes. --->

Popular repositories Loading

  1. SumanManna96 SumanManna96 Public

    Config files for my GitHub profile.

  2. Unsupervised-Multi-hop-QA Unsupervised-Multi-hop-QA Public

    Forked from teacherpeterpan/Unsupervised-Multi-hop-QA

    Codes for NAACL 2021 Paper "Unsupervised Multi-hop Question Answering by Question Generation"

    Python

  3. FMProjectE FMProjectE Public

    Forked from TeamBlackCrystal/FMProjectE

    ProjectE. A complete rewrite of EE2 for modern Minecraft versions.

    Java

  4. Omost Omost Public

    Forked from lllyasviel/Omost

    Your image is almost there!

    Python

  5. the-best-artificial-intelligence-books the-best-artificial-intelligence-books Public

    Forked from fadcrep/the-best-artificial-intelligence-books

    Free Artificial Intelligence eBooks

  6. The-Ultimate-Python-Course The-Ultimate-Python-Course Public

    Forked from CodeWithHarry/The-Ultimate-Python-Course

    Source code and all the details for the Ultimate Python Course on CodeWithHarry channel

    Python

0