Update memory-game/components/MemoryGame.jsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/1500/head
prathoseraaj V 2 months ago committed by GitHub
parent e8d31a93aa
commit 7abeac2c3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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];

Loading…
Cancel
Save