Skip to content

Commit

Permalink
15.12.2024 | Memory Mehrspieler funktion hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
ubodigat committed Dec 15, 2024
1 parent c775caf commit 0fd2930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion games/memory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ <h5>Aktueller Spieler:</h5>
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 => {
Expand Down
5 changes: 4 additions & 1 deletion games/memory/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0fd2930

Please sign in to comment.