fix: grid issues

pull/1500/head
prathoseraaj 11 months ago
parent fceb739d7d
commit 045314e5a1

@ -24,7 +24,7 @@ const MemoryGame = () => {
const handleGridSize = (e) => { const handleGridSize = (e) => {
const size = parseInt(e.target.value); const size = parseInt(e.target.value);
if (2 <= size && size <= 10) { if (2 <= size && size <= 10 && (size * size) % 2 === 0) {
setGridSize(size); setGridSize(size);
} }
}; };

Loading…
Cancel
Save