prepare game of life file

This commit is contained in:
Baipyrus 2024-04-12 15:14:33 +02:00
parent ba0ff0ab48
commit fd35af10ac

29
conway.go Normal file
View File

@ -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() {
}