random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Random

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

Random is a Conway universe that starts with random alives.

func New

func New(w, h, n int) (*Random, error)

New returns a new Random universe.

func (*Random) Status

func (r *Random) Status() conway.Grid

Status implements conway.Universe.

func (*Random) Tick

func (r *Random) Tick() error

Tick implements conway.Universe.

Jump to

Keyboard shortcuts

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