From 0fd2930e8a04875eb9f5b2d143182f64e1109cfc Mon Sep 17 00:00:00 2001 From: "U:Bodigat" Date: Sun, 15 Dec 2024 23:03:30 +0100 Subject: [PATCH] =?UTF-8?q?15.12.2024=20|=20Memory=20Mehrspieler=20funktio?= =?UTF-8?q?n=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- games/memory/index.html | 2 +- games/memory/style.css | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/games/memory/index.html b/games/memory/index.html index eb37ab4..665764b 100644 --- a/games/memory/index.html +++ b/games/memory/index.html @@ -201,7 +201,7 @@
Aktueller Spieler:
card2.element.style.transition = 'transform 0.00s ease-in-out'; card2.element.style.transform = 'rotateY(0deg)'; - currentPlayer = (currentPlayer + 1) % totalPlayers; // Spieler wechseln nur, wenn sie kein Paar gefunden haben + currentPlayer = (currentPlayer + 1) % totalPlayers; } flippedCards.forEach(card => { diff --git a/games/memory/style.css b/games/memory/style.css index 6479813..0b13c9e 100644 --- a/games/memory/style.css +++ b/games/memory/style.css @@ -298,10 +298,13 @@ h5 { } #player-count { + text-align: center; padding: 10px; font-size: 16px; margin-right: 10px; - border: 1px solid #ccc; + color: #ffffff; + border: 1px solid #cccccc21; + background-color: #111111c4; border-radius: 5px; width: 100px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1);