Skip to content

Commit

Permalink
feat: update winning score to 2048
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisWooyeol committed Sep 19, 2024
1 parent 667659d commit ae77213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Map2048.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const resetMap = (rowLength: number, columnLength: number): Map2048 => {
};

export const isGameWin = (map: Map2048): boolean => {
const WINNING_SCORE = 128;
const WINNING_SCORE = 2048;
return map.some((row) => row.some((cell) => cell === WINNING_SCORE));
};

Expand Down

0 comments on commit ae77213

Please sign in to comment.