()
| 2 | const scores = {'computerScore':0 , 'playerScore':0} |
| 3 | |
| 4 | function getComputerChoice() { |
| 5 | let options = ['Rock','Paper','Scissors'] |
| 6 | let n = Math.floor(Math.random()*3) |
| 7 | |
| 8 | return options[n] |
| 9 | } |
| 10 | |
| 11 | |
| 12 | function getResult(playerChoice, computerChoice) { |