We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7a273 commit 1552c11Copy full SHA for 1552c11
src/components/Boxes.js
@@ -28,8 +28,8 @@ const Boxes = () => {
28
29
const flat = currentBoxes.flat();
30
flat.forEach((v, i) => {
31
- if (v === "X") arrayX.push(i);
32
- if (v === "O") arrayO.push(i);
+ if (v === GAME_STATE.player1.textEquivalent) arrayX.push(i);
+ if (v === GAME_STATE.player2.textEquivalent) arrayO.push(i);
33
});
34
GAME_STATE.winnable.every((v) => {
35
let isWinX = v.every((v) => {
0 commit comments