diff --git a/main.go b/main.go index 46ec0a0..cc503b8 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,8 @@ func output(client *resty.Client, url string, width, height int, arr [][]Cell) { } func main() { + const FPS = 10 + // Load .env file if it exists err := godotenv.Load(".env") if err != nil { @@ -53,7 +55,7 @@ func main() { // Run Game of Life done := setup(func(c [][]Cell) { output(client, url, width, height, c) - }, width, height, 10) + }, width, height, FPS) // Wait for user input to quit fmt.Scanln()