Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Computer choice "getComputerChoice" Random math to make his choice if value 0, return rock if else value 1, return paper else return scissors Player choice Ask player input, has to not be case sensitive (can input between rock paper and scissors, majuscule ou pas) store value as string in a variable Keep score Create player score = 0 and computer score = 0 If player win, increment +1 to his score and +1 to computer score if he wins Plays 5 round or best of three, if player score 3 print "congratulation, you won" If computer score hits 3, print "you lost"