Update Day Four because I forgot how exponents work

This commit is contained in:
Lewis Dale 2023-12-04 08:17:01 +00:00
parent 8fadb42040
commit 95c8195e7a

View File

@ -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);
}