Piotr Czajkowski 3 vuotta sitten
vanhempi
commit
4ea8d153f5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      day15/day15.go

+ 1 - 1
day15/day15.go

@@ -34,7 +34,7 @@ func playGame(limit int) int {
 			currentNumber = rounds[1]
 		} else {
 			if spoken[1] == 0 {
-				currentNumber = rounds[1]
+				currentNumber = 0
 
 			} else {
 				currentNumber = spoken[1] - spoken[0]