Skip to content

Schatzman/GoGameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

The Rules

  1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
  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 overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

This version in Go by DSM by strict TDD, October 2017. This hasn't been tested on Windows and this version will certainly crash because of the clear command in the clearScreen function. Change that to cls for Windows.

To Build

  1. Move the GameOfLife/ directory to your $GOPATH/src
  2. cd into the GameOfLife/ directory
  3. go build -o GameOfLife (or -o GameOfLife.exe on Windows)
  4. GameOfLife (or GameOfLife.exe on Windows)

Alternately, if you've...

  • created src/ and bin/ at your $GOPATH
  • set your $GOSRCPATH
  • added your $GOBINPATH to your $PATH
  1. cd $GOSRCPATH
  2. go install GameOfLife
  3. GameOfLife (or GameOfLife.exe on Windows)

OR, if you've done the above and are on linux or OSX

  1. ./install.sh from the GoGameOfLife directory (may require a sudo chmod +x install.sh first)
  2. GameOfLife

About

Conway's Game of Life in Go via TDD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published