00:01
For this problem, problem 17, you're asked to write a program that plays rock paper scissors, and you will need to randomly generate the choice of the computer and ask a player for their choice.
00:18
So we're going to need random.
00:20
So we'll start by importing random in order to generate the computer's choice.
00:26
We need to get the player choice by having the player.
00:30
Input a 0, 1, or 2 based off of scissors, rock, or paper.
00:35
And i've just called that player.
00:38
The computer choice is going to be random .randt, and we just need a number between 0 and 2.
00:46
So i've named that computer.
00:48
And now we need to evaluate and display the results.
00:52
So if the player is equal to the computer, then we need to say that it's a draw, but we want to also print out what was the choice.
01:05
So if it's zero, bold print that the computer is scissors, you are scissors two.
01:11
It is a draw.
01:13
If it is one, then we say it's rock...