From 7bf4994a4eef4b782e8d290d119cb89e60b1e071 Mon Sep 17 00:00:00 2001 From: michivonah Date: Sat, 28 Jan 2023 18:24:07 +0100 Subject: [PATCH] changes to different things #11 --- game.js | 10 +++++++--- index.html | 6 ++++++ style.css | 42 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 54 insertions(+), 4 deletions(-) diff --git a/game.js b/game.js index 1495f0c..4c20075 100644 --- a/game.js +++ b/game.js @@ -595,11 +595,15 @@ function countPoints(){ var higher = false; if(trump == playedCard.dataset.color){ var pointsForWinner = parseInt(playedCard.dataset.pointsTrump); - if(parseInt(playedCard.dataset.type) == 9){ - var cardPoints = 10; + var cardPoints = 20; + if(parseInt(playedCard.dataset.type) == 9 || playedCard.dataset.type == "9"){ + cardPoints += 10; + } + else if(playedCard.dataset.type == "U"){ + cardPoints += 11; } else{ - var cardPoints = parseInt(playedCard.dataset.sortingNr); + cardPoints += parseInt(playedCard.dataset.sortingNr); } } else{ diff --git a/index.html b/index.html index 6a11ba0..6cdbebc 100644 --- a/index.html +++ b/index.html @@ -106,6 +106,12 @@

Einstellungen

Changelog

+

28. Januar 2023

+

25. Januar 2023