changed grid data type to bool, save mem and better perf

This commit is contained in:
2024-06-06 18:58:31 +02:00
parent a5dbd69976
commit ab22e0f4e2
5 changed files with 53 additions and 49 deletions

View File

@@ -42,8 +42,8 @@ type Config struct {
const (
VERSION = "v0.0.8"
Alive = 1
Dead = 0
Alive = true
Dead = false
DEFAULT_GRID_WIDTH = 600
DEFAULT_GRID_HEIGHT = 400