Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lochungtin committed Jun 1, 2021
1 parent d87d772 commit cec3d7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ export const cascade = (arr: Array<Array<number>>, direction: Direction): GameCo

export const compare = (board1: Array<Array<number>>, board2: Array<Array<number>>): boolean => {
// assuming they are of same dimensions

for (let i = 0; i < board1.length; ++i) {
for (let j = 0; j < board1[i].length; ++j) {
if (board1[i][j] !== board2[i][j])
return false;
}
}

return true;
}

0 comments on commit cec3d7e

Please sign in to comment.