From fd35af10acfd12fb0f1915c64575ee2defb03ef2 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 12 Apr 2024 15:14:33 +0200 Subject: [PATCH] prepare game of life file --- conway.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 conway.go diff --git a/conway.go b/conway.go new file mode 100644 index 0000000..189371a --- /dev/null +++ b/conway.go @@ -0,0 +1,29 @@ +package main + +import ( + "github.com/go-resty/resty/v2" +) + +type Cell struct { + x int + y int + live bool +} + +func (c *Cell) NeighborCount() int { + +} + +func coordinatesToIndex(x int, y int) int { + return x + y*width +} + +var grid []Cell + +func setup(client *resty.Client, url, width int, height int) { + +} + +func draw() { + +}