13 lines
171 B
Go
13 lines
171 B
Go
package conway
|
|
|
|
type GameStateCell struct {
|
|
Value int
|
|
X int
|
|
Y int
|
|
cols []int
|
|
}
|
|
|
|
func (cell *GameStateCell) SetValue(value int) {
|
|
cell.cols[cell.X] = value
|
|
}
|