Skip to content

Commit 450fec0

Browse files
check that all number used are different in magic square game (#39)
* check that all number used are different * once all the square is filled it will validate automatically whether the square is correct or not. * made the error text smaller * conflict resolve * conflict
1 parent 13e9538 commit 450fec0

File tree

2 files changed

+67
-9
lines changed

2 files changed

+67
-9
lines changed

package-lock.json

Lines changed: 65 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/games/MagicSquares.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export const MagicSquares = () => {
218218
value={cellInputValue}
219219
onChange={(e) => setCellInputValue(e.target.value)}
220220
/>
221+
221222
<div className="flex-button">
222223
<div
223224
className="button"
@@ -253,6 +254,7 @@ export const MagicSquares = () => {
253254
setBoard(tempBoard);
254255
setFocusCell("");
255256
autocheck();
257+
256258
}
257259
}}>
258260
clear

0 commit comments

Comments
 (0)