-
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.
fix(core): not considering multiple Oops! All 6s
- Loading branch information
1 parent
37e6bee
commit be2e6fa
Showing
4 changed files
with
69 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import type { TestCase } from '#lib/balatro.test.js' | ||
|
||
export default (message: string): TestCase => { | ||
return { | ||
message, | ||
initialState: { | ||
hands: 1, | ||
playedCards: [ | ||
{ rank: 'King', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: 'King', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: 'Jack', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: 'Ace', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: '6', suit: 'Hearts', enhancement: 'lucky' }, | ||
], | ||
jokers: [ | ||
{ name: 'Sock and Buskin' }, | ||
{ name: 'Dusk' }, | ||
{ name: 'Lusty Joker' }, | ||
{ name: 'Blueprint' }, | ||
{ name: 'Bloodstone' }, | ||
{ name: 'Oops! All 6s' }, | ||
{ name: 'Oops! All 6s' }, | ||
{ name: 'Oops! All 6s' }, | ||
{ name: 'Oops! All 6s' }, | ||
], | ||
}, | ||
expected: { | ||
hand: 'Flush', | ||
scoringCards: [ | ||
{ rank: 'King', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: 'King', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: 'Jack', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: 'Ace', suit: 'Hearts', enhancement: 'lucky' }, | ||
{ rank: '6', suit: 'Hearts', enhancement: 'lucky' }, | ||
], | ||
scores: [ | ||
{ score: 384131132448, formattedScore: '384,131,132,448', luck: 'none' }, | ||
{ score: 384131132448, formattedScore: '384,131,132,448', luck: 'average' }, | ||
{ score: 384131132448, formattedScore: '384,131,132,448', luck: 'all' }, | ||
], | ||
}, | ||
} | ||
} |