'''
Sample transcript...

Computer has picked rock, paper, or scissors.
What is your pick: __rock__
Computer picked: paper
Computer wins.

Computer has picked rock, paper, or scissors.
What is your pick: __paper__
Computer picked: rock
Player wins!
'''

import random

choices = ['rock', 'paper', 'scissors']
computer = random.choice(choices)

print('Computer has picked rock, paper, or scissors.')

player = input('What is your pick: ')

print(f'Computer picked {computer}.')

if player not in choices:
  print('Incorrect choice. Computer wins.')
else:
  if computer == player:
    print('Tie.')
  elif computer == 'rock' and player == 'scissors' or \
     computer == 'scissors' and player == 'paper' or \
     computer == 'paper' and player == 'rock':
    print('Computer wins.')
  else:
    print('Player wins!')

