-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
score multiplier, level progression, speed progression
- Loading branch information
1 parent
d06e8c8
commit 9174570
Showing
5 changed files
with
68 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { getScoreForNextLevel } from "../game"; | ||
|
||
describe("getLevel", () => { | ||
test("getScoreForNextLevel", () => { | ||
const levels = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | ||
const scores = [ | ||
1000, 3000, 6000, 10000, 15000, 21000, 28000, 36000, 45000, 55000, | ||
]; | ||
|
||
const expectedScores = levels.map(getScoreForNextLevel); | ||
|
||
expect(expectedScores).toEqual(scores); | ||
}); | ||
}); |