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