mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 12:01:45 +00:00
30 lines
349 B
Go
30 lines
349 B
Go
|
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() {
|
||
|
|
||
|
}
|