generation_processor

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinates

type Coordinates struct {
	Row    int
	Column int
}

type GenerationProcessor

type GenerationProcessor struct {
	// contains filtered or unexported fields
}

TODO: Add species, alleles, dominant/recessive genes and evolution index

func FromCells

func FromCells(c []*cell.Cell) GenerationProcessor

func (*GenerationProcessor) Expand

func (gp *GenerationProcessor) Expand(influence int)

TODO: Include survival logic in the processor, consider removing originalFound check.

func (*GenerationProcessor) Reduce

func (gp *GenerationProcessor) Reduce(minimum int, maximum int)

func (GenerationProcessor) ToCells

func (gp GenerationProcessor) ToCells() []*cell.Cell

Jump to

Keyboard shortcuts

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