Piotr Czajkowski %!s(int64=4) %!d(string=hai) anos
pai
achega
4ea8d153f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]