From 95c8195e7aa51c726ff44a8890eebb0d5b8e1f6c Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Mon, 4 Dec 2023 08:17:01 +0000 Subject: [PATCH] Update Day Four because I forgot how exponents work --- src/day_four.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/day_four.ts b/src/day_four.ts index 7a909fa..64905d3 100644 --- a/src/day_four.ts +++ b/src/day_four.ts @@ -26,7 +26,6 @@ export class Scratchcard { get score() { const matches = this.matches; if (!matches.length) return 0; - if (matches.length === 1) return 1; return Math.pow(2, matches.length - 1); }