From b83b1ed6317447d51d4251a7179ca5a547b3c44e Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Tue, 9 Jan 2024 18:59:37 +0100 Subject: [PATCH] Removed points in case of Tie --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index eaa4a6e..a9e38b0 100644 --- a/index.js +++ b/index.js @@ -11,8 +11,6 @@ function playRound(playerChoice, computerChoice) { let computerChoiceCapital = computerChoice.slice(0,1).toUpperCase() + computerChoice.slice(1,computerChoice.length) if (playerChoice == computerChoice) { - points.playerAddPoints(); - points.computerAddPoints(); return `It's a tie! ${playerChoiceCapital} vs ${computerChoiceCapital}.`; } else if ((playerChoice == "rock" && computerChoice == "paper") || (playerChoice == "paper" && computerChoice == "scissors")