format part 2

This commit is contained in:
Nico 2020-12-11 14:10:20 +00:00
parent c8ed989ee9
commit 3c92d75853
1 changed files with 5 additions and 5 deletions

View File

@ -85,12 +85,12 @@ func main() {
} else {
r = append(r, char)
}
}
}
}
}
newgrid = append(newgrid, r)
}
// printgrid(&newgrid)
// printgrid(&newgrid)
generations += 1
stable = true
for i, r := range grid {
@ -106,5 +106,5 @@ func main() {
grid = newgrid
}
fmt.Println("Generations until stability:", generations)
fmt.Println("Occupied Seats:",seats)
fmt.Println("Occupied Seats:", seats)
}