cell

package
v0.0.0-...-5da52ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Neighbors []*Cell
	// contains filtered or unexported fields
}

func New

func New(r int, c int) Cell

func (*Cell) GetPosition

func (c *Cell) GetPosition() (int, int)

func (*Cell) IsNeighbor

func (c *Cell) IsNeighbor(nc *Cell) bool

func (*Cell) Kill

func (c *Cell) Kill()

func (*Cell) WillSurvive

func (c *Cell) WillSurvive() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL