Browse Source

Correction

Piotr Czajkowski 3 years ago
parent
commit
6e0f4bb850
1 changed files with 1 additions and 1 deletions
  1. 1 1
      day22/day22.go

+ 1 - 1
day22/day22.go

@@ -89,7 +89,7 @@ func checkDecks(deck1, deck2 []int, previousRounds []previous) bool {
 		if len(deck1) != len(round.deck1) || len(deck2) != len(round.deck2) {
 			continue
 		}
-		if checkDeck(deck1, round.deck1) || checkDeck(deck2, round.deck2) {
+		if checkDeck(deck1, round.deck1) && checkDeck(deck2, round.deck2) {
 			return true
 		}
 	}