diff --git a/memory-game/components/MemoryGame.jsx b/memory-game/components/MemoryGame.jsx index fd433a8f..6032d5ed 100644 --- a/memory-game/components/MemoryGame.jsx +++ b/memory-game/components/MemoryGame.jsx @@ -35,7 +35,7 @@ const MemoryGame = () => { const initializeGame = useCallback(() => { const totalCards = gridSize * gridSize; - const pairCount = Math.floor(totalCards / 2); + const pairCount = totalCards / 2; const numbers = [...Array(pairCount).keys()].map((n) => n + 1); const cardNumbers = [...numbers, ...numbers];