fix: forgot to add wild card #4

Merged
xuu merged 2 commits from day07 into main 2023-12-07 20:11:08 -07:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 827835f12f - Show all commits

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