(playerChoice)
| 50 | |
| 51 | // ** Calculate who won and show it on the screen ** |
| 52 | function onClickRPS(playerChoice) { |
| 53 | const computerChoice = getComputerChoice() |
| 54 | const score = getResult(playerChoice.value,computerChoice) |
| 55 | scores['playerScore'] += score |
| 56 | showResult(score, playerChoice.value,computerChoice) |
| 57 | } |
| 58 | |
| 59 | |
| 60 | // ** Make the RPS buttons actively listen for a click and do something once a click is detected ** |
no test coverage detected