Update Day Four because I forgot how exponents work
This commit is contained in:
parent
8fadb42040
commit
95c8195e7a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user