<gh_stars>0
"""Rock,Paper, Scissors (Always Win version)
By <NAME> <EMAIL>
The classic hand game of luck, except you always win.
This and other games are available at https://nostarch.com/XX
Tags: tiny, game, humor"""
__version__ = 0
import time, sys

print('''Rock, Paper, Scissors, by <NAME> <EMAIL>
- Rock beats scissors.
- Paper beats rocks.
- Scissors beats paper.
''')

# These variables keep track of the number of wins, losses, and ties.
wins = 0
losses = 0
ties = 0

while True:  # Main game loop.
    while True:  # Keep asking until player enters R, P, S, or Q.
        print('{} Wins, 0 Losses, 0 Ties'.format(wins))
        print('Enter your move: (R)ock (P)aper (S)cissors or (Q)uit')
        playerMove = input('> ').upper()
        if playerMove == 'Q':
            sys.exit()

        if playerMove == 'R' or playerMove == 'P' or playerMove == 'S':
            break
        else:
            print('Type one of R, P, S, or Q.')

    # Display what the player chose:
    if playerMove == 'R':
        print('ROCK versus...')
    elif playerMove == 'P':
        print('PAPER versus...')
    elif playerMove == 'S':
        print('SCISSORS versus...')

    # Count to three with dramatic pauses:
    time.sleep(0.5)
    print('1...')
    time.sleep(0.25)
    print('2...')
    time.sleep(0.25)
    print('3...')
    time.sleep(0.25)

    # Display what the computer chose:
    if playerMove == 'R':
        print('SCISSORS')
    elif playerMove == 'P':
        print('ROCK')
    elif playerMove == 'S':
        print('PAPER')

    time.sleep(0.5)

    print('You win!')
    wins = wins + 1

"""Rock,Paper, Scissors (Always Win version)
By <NAME> <EMAIL>
The classic hand game of luck, except you always win.
This and other games are available at https://nostarch.com/XX
Tags: tiny, game, humor"""
__version__ = 0
import time, sys

print('''Rock, Paper, Scissors, by <NAME> <EMAIL>
- Rock beats scissors.
- Paper beats rocks.
- Scissors beats paper.
''')

# These variables keep track of the number of wins, losses, and ties.
wins = 0
losses = 0
ties = 0

while True:  # Main game loop.
    while True:  # Keep asking until player enters R, P, S, or Q.
        print('{} Wins, 0 Losses, 0 Ties'.format(wins))
        print('Enter your move: (R)ock (P)aper (S)cissors or (Q)uit')
        playerMove = input('> ').upper()
        if playerMove == 'Q':
            sys.exit()

        if playerMove == 'R' or playerMove == 'P' or playerMove == 'S':
            break
        else:
            print('Type one of R, P, S, or Q.')

    # Display what the player chose:
    if playerMove == 'R':
        print('ROCK versus...')
    elif playerMove == 'P':
        print('PAPER versus...')
    elif playerMove == 'S':
        print('SCISSORS versus...')

    # Count to three with dramatic pauses:
    time.sleep(0.5)
    print('1...')
    time.sleep(0.25)
    print('2...')
    time.sleep(0.25)
    print('3...')
    time.sleep(0.25)

    # Display what the computer chose:
    if playerMove == 'R':
        print('SCISSORS')
    elif playerMove == 'P':
        print('ROCK')
    elif playerMove == 'S':
        print('PAPER')

    time.sleep(0.5)

    print('You win!')
    wins = wins + 1
Rock,Paper, Scissors (Always Win version) By <NAME> <EMAIL> The classic hand game of luck, except you always win. This and other games are available at https://nostarch.com/XX Tags: tiny, game, humor Rock, Paper, Scissors, by <NAME> <EMAIL> - Rock beats scissors. - Paper beats rocks. - Scissors beats paper. # These variables keep track of the number of wins, losses, and ties. # Main game loop. # Keep asking until player enters R, P, S, or Q. # Display what the player chose: # Count to three with dramatic pauses: # Display what the computer chose: