Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 950 Bytes

README.md

File metadata and controls

43 lines (36 loc) · 950 Bytes

Conway's Game of Life

  • zero-player game simulating life of cells
  • Wikipedia article
  • this is my personal CLI implementation in Go

Usage

go build conway.go
./conway width height file
  • where width and height are unsigned integers that determine the size of field
  • and file is a file with the starting seed

Seed

  • The only influence the user has on the Game of Life is the starting position determined by the seed
  • The seed for my implementation has the following format:
0, 0
9, 3
  • where the tuples of numbers determine the starting cells which are alive
  • there are example seeds in the repository block, blinker and glider

Example

./conway 10 10 glider
Generation  0 :

_X________
__X_______
XXX_______
__________
__________
__________
__________
__________
__________
__________

Pres return for next generation, Ctrl-c to stop.