lundi 11 février 2019

Why does my code not execute the outcome of my simple rock, paper, scissors game? PYTHON3

Here is my code, for some reason the outcome of the game is not displayed and I don't know why, can anyone explain how I can make the desired outcome be executed. I have tried messing around with my code for a while, if you know how to fix this can you teach me so that next time I won't make the same mistake. Thank you.

import random

Rock= 0
Paper = 1
Scissors = 2
Quest = input("Rock, Paper, Scissors?")
print("You choose",Quest)
AI = random.randint(0,2)

#What the A.I Chooses
if AI == 0:
    print("A.I Chooses Rock")

if AI == 1:
    print("A.I Chooses Paper")

if AI == 2:
    print("A.I Chooses Scissors")

# if you draw:
if AI == 0 and Quest == Rock:
    print("So, you draw")
if AI == 1 and Quest == Paper:
    print("So, you draw")
if AI == 2 and Quest == Scissors:
    print("So, you draw")
# Rock Possible Outcomes
if AI == 0 and Quest == Paper:
    print("So, you loose")
if AI == 0 and Quest == Scissors:
    print("So, you win")
# paper Possible Outcomes
if AI == 1 and Quest == Rock:
    print("So, you loose")
if AI == 1 and Quest == Scissors:
    print("So, you win")
#Scissors Possible Outcomes
if AI == 2 and Quest == Paper:
    print("So, you loose")
if AI == 2 and Quest == Rock:
    print("So, you win")

Aucun commentaire:

Enregistrer un commentaire