Piotr Czajkowski 3 gadi atpakaļ
vecāks
revīzija
6e0f4bb850
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 		}
 	}