Piotr Czajkowski %!s(int64=3) %!d(string=hai) anos
pai
achega
6e954b47bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      day15/day15.go

+ 1 - 1
day15/day15.go

@@ -31,7 +31,7 @@ func playGame(limit int) int {
 		lastNumber := rounds[currentRound-1]
 
 		if spoken, ok := numbersSpoken[lastNumber]; !ok {
-			currentNumber = rounds[1]
+			currentNumber = 0
 		} else {
 			if spoken[1] == 0 {
 				currentNumber = 0