Day 6 — Python: Rock, Paper, Scissors Game

Kenny Hin
Jun 11, 2022

--

These are the ASCII product to print.

Line 32–45

Stored rock paper scissor in a list to use later. Prompt for user input and changed answer to integer. With computer chose, stored random_chose into random with ranges 0–2 (based on user input — rock designated number 0 etc hence changing to integer above). Then designated computer_chose to pull from weapon random range (0–2) to print rock paper or scissor.

Line 37–45 #Printed

These are user and computer selections without algo behind it. Moving on to the algo to react to user input.

Line 47–69

With this game i knew i had to use some IF statements. From previous experience with quiz algos, i just had to build out one scenario and copy paste the rest and change the choose and random_chose variables.

--

--

Kenny Hin
Kenny Hin

No responses yet