Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
Signed-off-by: mateusz <mateusz@stake.fish>
  • Loading branch information
mateuszsokola committed Sep 1, 2024
1 parent 91a9fff commit 4956563
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions context/game-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,11 @@ export default function GameProvider({ children }: PropsWithChildren) {
return;
}

if (
x < maxIndex &&
tiles[board[x][y]].value === tiles[board[x + 1][y]].value
) {
if (tiles[board[x][y]].value === tiles[board[x + 1][y]].value) {
return;
}

if (
y < maxIndex &&
tiles[board[x][y]].value === tiles[board[x][y + 1]].value
) {
if (tiles[board[x][y]].value === tiles[board[x][y + 1]].value) {
return;
}
}
Expand Down

0 comments on commit 4956563

Please sign in to comment.