Home | History | Annotate | Download | only in play

Lines Matching full:alive

31 // Alive reports whether the specified cell is alive.
34 func (f *Field) Alive(x, y int) bool {
44 // Count the adjacent cells that are alive.
45 alive := 0
48 if (j != 0 || i != 0) && f.Alive(x+i, y+j) {
49 alive++
57 return alive == 3 || alive == 2 && f.Alive(x, y)
96 if l.a.Alive(x, y) {