From 34d94914213297bc21d4f5bfe15edb1994c88f0b Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 14 Apr 2024 22:34:16 +0200 Subject: [PATCH] bugfix: save new generation --- conway.go | 1 + 1 file changed, 1 insertion(+) diff --git a/conway.go b/conway.go index f1ce95c..7cf74b0 100644 --- a/conway.go +++ b/conway.go @@ -108,5 +108,6 @@ func draw(callback func([][]Cell)) { // curr && cout >= 2 && cout <= 3 || !curr && cout == 3 } } + grid = generation callback(generation) }