invasion

package
v0.0.0-...-9bbeb27 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invasion

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

func New

func New(worldFilename string, alienPopulation int) Invasion

func (Invasion) GetAliens

func (inv Invasion) GetAliens() *aliens.Aliens

func (Invasion) GetWorld

func (inv Invasion) GetWorld() *world.World

func (*Invasion) RunInvasionAsync

func (anInv *Invasion) RunInvasionAsync(days int)

Each alien can move only to one neighboring city per day.

func (*Invasion) RunInvasionSync

func (anInv *Invasion) RunInvasionSync(days int)

Assumption: Each alien can move only to one neighboring city per day.

Jump to

Keyboard shortcuts

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