box-o-sand/conway/game_state_cell.go

13 lines
192 B
Go
Raw Normal View History

2012-12-12 03:50:47 +00:00
package conway
type GameStateCell struct {
Value int
X int
Y int
cellmates []int
2012-12-12 03:50:47 +00:00
}
func (cell *GameStateCell) SetValue(value int) {
cell.cellmates[cell.X] = value
2012-12-12 03:50:47 +00:00
}