Skip to content

tadeas-vintrlik/conway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CLI implementation of the Conway's Game of Life in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages