Add new div and extra text to msg when players tie
This commit is contained in:
parent
7edde3e168
commit
329920601b
2 changed files with 3 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ function game() {
|
|||
msg.textContent = "You win! " + psCap + " beats " + cs + ".";
|
||||
break;
|
||||
default:
|
||||
msg.textContent = "It's a tie!";
|
||||
msg.textContent = "It's a tie! You both played " + cs + ".";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue