# Yeh rock paper scissors game ka program hai. Iss game ko aap computer ke against kheloge. Iss game ke 3 rules hai * Rock Paper se haar jata hai

#     Paper Scissors se haar jaata hai
#     Aur, Scissors Rock se.

# Appko pehle rock,paper ya scissors mei se chose karna hoga. Aur uske baad computer randomly inme se ek option chose karega. Firr, upar diye gaye rules ke hisab se result aayega. Jaise: * Agar aapne "Rock" chose kiya aur computer ne "Scissors"

#     To aap jeet jaoge kyunki "Rock" "Scissors" ko hara deta hai. ( Rule 3 )

from random import randint
def win():
    print ('You win!')

def lose():
    print ('You lose!')
while True:
    player_choice = input('What do you pick? (rock, paper, scissors)')
    player_choice.strip()
    moves = ['rock', 'paper', 'scissors']
    random_move =moves[randint(0,2)]
    computer_choice = random_move 
    print (computer_choice)
    if player_choice == computer_choice:
        print('Draw!')
    if player_choice == 'rock' and computer_choice == 'scissors':
        win()
    elif player_choice == 'paper' and computer_choice == 'scissors':
        lose()
    elif player_choice == 'scissors' and computer_choice == 'paper':
        win()
    elif player_choice == 'scissors' and computer_choice == 'rock':
        lose()
    elif player_choice == 'paper' and  computer_choice == 'rock':
        win()
    elif player_choice == 'rock' and  computer_choice == 'paper':
        win()
    aGain = input('Do you want to play again? (y or n)').strip()
    if aGain == 'n':
        break 
8cba57482e3af880b2beb38535ffb15da554e46b
<mask token>

<mask token>


def lose():
    print('You lose!')


<mask token>

<mask token>


def win():
    print('You win!')


def lose():
    print('You lose!')


<mask token>

from random import randint


def win():
    print('You win!')


def lose():
    print('You lose!')


while True:
    player_choice = input('What do you pick? (rock, paper, scissors)')
    player_choice.strip()
    moves = ['rock', 'paper', 'scissors']
    random_move = moves[randint(0, 2)]
    computer_choice = random_move
    print(computer_choice)
    if player_choice == computer_choice:
        print('Draw!')
    if player_choice == 'rock' and computer_choice == 'scissors':
        win()
    elif player_choice == 'paper' and computer_choice == 'scissors':
        lose()
    elif player_choice == 'scissors' and computer_choice == 'paper':
        win()
    elif player_choice == 'scissors' and computer_choice == 'rock':
        lose()
    elif player_choice == 'paper' and computer_choice == 'rock':
        win()
    elif player_choice == 'rock' and computer_choice == 'paper':
        win()
    aGain = input('Do you want to play again? (y or n)').strip()
    if aGain == 'n':
        break

# Yeh rock paper scissors game ka program hai. Iss game ko aap computer ke against kheloge. Iss game ke 3 rules hai * Rock Paper se haar jata hai

#     Paper Scissors se haar jaata hai
#     Aur, Scissors Rock se.

# Appko pehle rock,paper ya scissors mei se chose karna hoga. Aur uske baad computer randomly inme se ek option chose karega. Firr, upar diye gaye rules ke hisab se result aayega. Jaise: * Agar aapne "Rock" chose kiya aur computer ne "Scissors"

#     To aap jeet jaoge kyunki "Rock" "Scissors" ko hara deta hai. ( Rule 3 )

from random import randint
def win():
    print ('You win!')

def lose():
    print ('You lose!')
while True:
    player_choice = input('What do you pick? (rock, paper, scissors)')
    player_choice.strip()
    moves = ['rock', 'paper', 'scissors']
    random_move =moves[randint(0,2)]
    computer_choice = random_move 
    print (computer_choice)
    if player_choice == computer_choice:
        print('Draw!')
    if player_choice == 'rock' and computer_choice == 'scissors':
        win()
    elif player_choice == 'paper' and computer_choice == 'scissors':
        lose()
    elif player_choice == 'scissors' and computer_choice == 'paper':
        win()
    elif player_choice == 'scissors' and computer_choice == 'rock':
        lose()
    elif player_choice == 'paper' and  computer_choice == 'rock':
        win()
    elif player_choice == 'rock' and  computer_choice == 'paper':
        win()
    aGain = input('Do you want to play again? (y or n)').strip()
    if aGain == 'n':
        break 