Add classes and styles; fix working in player win case
This commit is contained in:
parent
69ccd75efa
commit
c95509a187
3 changed files with 40 additions and 6 deletions
|
|
@ -73,7 +73,7 @@ function game() {
|
|||
case "player wins":
|
||||
pScore += 1;
|
||||
player.textContent = pScore;
|
||||
msg.textContent = "You lose! " + ps + " beats " + cs;
|
||||
msg.textContent = "You win! " + ps + " beats " + cs;
|
||||
break;
|
||||
default:
|
||||
msg.textContent = "It's a tie!";
|
||||
|
|
|
|||
Loading…
Reference in a new issue