sdl2-life

Conway's Game of Life with go-sdl2
git clone https://www.brianlane.com/git/sdl2-life
Log | Files | Refs | README

commit 279c62218816a94e31008c58134784ddbc95284a
parent 32e6726bb6c73e0d46520dfcc6970c0d85bf608c
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Sun, 11 Jun 2023 16:51:28 -0700

Print the calculated world size

Diffstat:
Mmain.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.go b/main.go @@ -1008,6 +1008,8 @@ func (g *LifeGame) CalculateWorldSize() { } else { log.Fatal("Unsupported rotate value") } + + fmt.Printf("World is %d columns x %d rows\n", g.columns, g.rows) } // InitializeGame sets up the game struct and the SDL library @@ -1147,7 +1149,6 @@ func parseDigits(digits string) (map[int]bool, error) { // // Rulestrings are of the form Bn.../Sn... which list the number of neighbors to birth a new one, // and the number of neighbors to stay alive. -// func ParseRulestring(rule string) (birth map[int]bool, stayAlive map[int]bool, e error) { var errors bool