version 5, updated

This commit is contained in:
2026-05-15 20:58:17 +03:00
parent f9069e24ba
commit d25f15bd04
4 changed files with 20 additions and 12 deletions
+2 -6
View File
@@ -27,12 +27,9 @@ const Paper = { num: 1, Name: 'бумага' };
function game(hum) {
document.getElementById("result-img").src = "";
let npc = Math.floor(Math.random() * 3) + 1;
document.getElementById("player-img").src = "img/" + images[hum] + ".png";
document.getElementById("hum-img").src = "img/" + images[hum] + ".png";
document.getElementById("npc-img").src = "img/" + images[npc] + ".png";
if (npc === 1 && hum === 3) {
@@ -66,5 +63,4 @@ function game(hum) {
}
updateScore();
console.log("wins-" + stats.wins + ",looses-" + stats.looses + ",draws-" + stats.draws);
console.log("wins-" + stats.wins + ",looses-" + stats.looses + ",draws-" + stats.draws);