diff --git a/src/day_four.ts b/src/day_four.ts index f819e03..7a909fa 100644 --- a/src/day_four.ts +++ b/src/day_four.ts @@ -28,7 +28,7 @@ export class Scratchcard { if (!matches.length) return 0; if (matches.length === 1) return 1; - return Math.pow(2, Math.max(matches.length - 1, 1)); + return Math.pow(2, matches.length - 1); } get isWinner() {