Documentation ¶
Index ¶
- type GolReader
- func (gr *GolReader) ReadCellsFile(filename string, gconf *base.GolConf) (base.GolInterface, error)
- func (gr *GolReader) ReadCongolwayFile(filename string) (base.GolInterface, error)
- func (gr *GolReader) ReadFile(filename string, gconf *base.GolConf) (base.GolInterface, error)
- func (gr *GolReader) ReadGifFile(filename string, gconf *base.GolConf) (base.GolInterface, error)
- func (gr *GolReader) ReadLife105File(filepath string, gconf *base.GolConf) (base.GolInterface, error)
- func (gr *GolReader) ReadLife106File(filepath string, gconf *base.GolConf) (base.GolInterface, error)
- func (gr *GolReader) ReadLifeFile(filename string, gconf *base.GolConf) (base.GolInterface, error)
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 ¶
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) ReadGifFile ¶
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 ¶
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