Skip to content

scottjbarr/gameoflife-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

A Go version of the Game of Life.

See https://en.wikipedia.org/wiki/Game_of_Life

Rules

  1. Any live cell with fewer than two live neighbours dies, as if caused by under-population.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overcrowding.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

Install

go get github.com/scottjbarr/gameoflife-go

Run

Pass the -h switch to see help

go run main.go loader.go -file ./docs/glider.L

Test

go test github.com/scottjbarr/gameoflife-go

or from the project directory

go test

License

The MIT License (MIT)

Copyright (c) 2015 Scott Barr

See LICENSE.md

About

A Go version of the Game of Life.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published