fix: forgot to add wild card

This commit is contained in:
xuu 2023-12-07 19:29:34 -07:00
parent 287dcbb854
commit 827835f12f
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F
2 changed files with 2 additions and 2 deletions

View File

@ -44,6 +44,7 @@ func run(scan *bufio.Scanner) (uint64, uint64) {
product1 := calcProduct(game)
game.cardOrder = getOrder(2)
game.wildCard = 'J'
product2 := calcProduct(game)
return product1, product2

View File

@ -40,7 +40,6 @@ func TestHands(t *testing.T) {
h = Play{0, []rune("QQQJA"), &game}
is.Equal(h.HandType(), "3K-Q")
is.Equal(fmt.Sprintf("%x", h.HandStrength()), "4bbbad")
}
func TestPower(t *testing.T) {
@ -69,5 +68,5 @@ func TestSolution(t *testing.T) {
is.Equal(score1, uint64(248559379))
t.Log("score2", score2)
is.Equal(score2, uint64(248761814))
is.Equal(score2, uint64(249631254))
}