Skip to content

Shubham-Yadav22/Rock-paper-scissors.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Rock-paper-scissors.

import random

rock = ''' _______ ---' ) () () () ---.(_) '''

paper = ''' _______ ---' ) ______) ____) ) ---.) '''

scissors = ''' _______ ---' ) _) ______) () ---.() '''

#Write your code below this line 👇

user_choice = int(input("Choose 0 for rock , 1 for paper and 2 for scissors")) computer_choice = random.randint(0, 2)

if user_choice == 0: print("Your Choice", rock) elif user_choice == 1: print("Your Choice",paper) else: print("Your Choice", scissors)

if computer_choice == 0: print("Computer chooses ", rock) elif computer_choice == 1: print("Computer chooses ", paper) else: print("Computer chooses ", scissors)

if computer_choice > user_choice: print("Computer Wins") elif user_choice == 2 and computer_choice == 0: print("Computer Wins") elif user_choice == computer_choice: print("Game Draws") else: print("You Wins")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors