Skip to content
Snippets Groups Projects
Commit 9f52c28b authored by dhana surya's avatar dhana surya
Browse files

add the game logic

parent 097dc295
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,9 @@ print(f"User Choice : {data_list[user_choice]}")
computer_choice = random.randint(0 , 2)
print(f"Computer Choose : {data_list[computer_choice]}")
# TODO create a logic the game
if (user_choice == 0 and computer_choice == 2) or (user_choice == 1 and computer_choice == 0 ) or (user_choice == 2 and computer_choice == 1 ):
print("You Win the Match")
elif user_choice == computer_choice :
print("Match Tied !")
else :
print("Computer Win the match !")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment