box-o-sand/conway/game_state_cell.go

13 lines
192 B
Go

package conway
type GameStateCell struct {
Value int
X int
Y int
cellmates []int
}
func (cell *GameStateCell) SetValue(value int) {
cell.cellmates[cell.X] = value
}