Add classes and styles; fix working in player win case

This commit is contained in:
lolabird 2023-11-07 23:01:07 -07:00
commit c95509a187
3 changed files with 40 additions and 6 deletions

View file

@ -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!";