Remove unnecessary comments
This commit is contained in:
parent
b5ae51cbdd
commit
69ccd75efa
1 changed files with 1 additions and 2 deletions
|
|
@ -35,7 +35,6 @@ function playRound(playerSelection, computerSelection){
|
||||||
c = computerSelection.toLowerCase();
|
c = computerSelection.toLowerCase();
|
||||||
|
|
||||||
if (p === c) {
|
if (p === c) {
|
||||||
//console.log("It's a tie!")
|
|
||||||
return "tie";
|
return "tie";
|
||||||
} else if (p === "rock") {
|
} else if (p === "rock") {
|
||||||
if (c === "paper") {
|
if (c === "paper") {
|
||||||
|
|
@ -77,7 +76,7 @@ function game() {
|
||||||
msg.textContent = "You lose! " + ps + " beats " + cs;
|
msg.textContent = "You lose! " + ps + " beats " + cs;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
msg.textContent = "It's a tie! ";
|
msg.textContent = "It's a tie!";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue