mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-17 12:40:56 +01:00
better comments, simplified check
This commit is contained in:
@@ -13,9 +13,9 @@ import (
|
||||
)
|
||||
|
||||
type Cell struct {
|
||||
State uint8
|
||||
Neighbors [8]*Cell
|
||||
NeighborCount int
|
||||
State uint8 // 1==life, 0==dead
|
||||
Neighbors [8]*Cell // all neighbors, max 8
|
||||
NeighborCount int // number of neighbors, might be less than 8 on edges
|
||||
}
|
||||
|
||||
func (cell *Cell) Count() uint8 {
|
||||
|
||||
Reference in New Issue
Block a user