input

package
v0.0.0-...-2efb1be Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GolReader

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

GolReader : tasked with reading a Game of Life from files

func NewGolReader

func NewGolReader(g base.GolInterface) *GolReader

NewGolReader : returns a new pointer to GolReader

func (*GolReader) ReadCellsFile

func (gr *GolReader) ReadCellsFile(filename string, gconf *base.GolConf) (base.GolInterface, error)

ReadCellsFile : create a new Game of life from a .cells file

func (*GolReader) ReadCongolwayFile

func (gr *GolReader) ReadCongolwayFile(filename string) (base.GolInterface, error)

ReadCongolwayFile : create a new Game of life from a text file

func (*GolReader) ReadFile

func (gr *GolReader) ReadFile(filename string, gconf *base.GolConf) (base.GolInterface, error)

ReadFile : read a file from a path

func (*GolReader) ReadGifFile

func (gr *GolReader) ReadGifFile(filename string, gconf *base.GolConf) (base.GolInterface, error)

ReadGifFile : create a new Game of life from a .gif file

func (*GolReader) ReadLife105File

func (gr *GolReader) ReadLife105File(filepath string, gconf *base.GolConf) (base.GolInterface, error)

ReadLife105File : read a Game of life from a Life 1.05 file. See the following link for more information: - 1.05: https://www.conwaylife.com/wiki/Life_1.05

func (*GolReader) ReadLife106File

func (gr *GolReader) ReadLife106File(filepath string, gconf *base.GolConf) (base.GolInterface, error)

ReadLife106File : read a Game of life from a Life 1.06 file. See the following link for more information: - 1.06: https://www.conwaylife.com/wiki/Life_1.06

func (*GolReader) ReadLifeFile

func (gr *GolReader) ReadLifeFile(filename string, gconf *base.GolConf) (base.GolInterface, error)

ReadLifeFile : create a new Game of life from a .life file. See the following links for more information: - 1.05: https://www.conwaylife.com/wiki/Life_1.05 - 1.06: https://www.conwaylife.com/wiki/Life_1.06

Jump to

Keyboard shortcuts

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