Skip to content

taylorjg/GameOfLife

Repository files navigation

Game Of Life

I recently attended a Global Day of Coderetreat in Salford. I was part of a delegation from the company where I work, DRL, which also co-sponsored the event.

The event involved pair programming and TDD. Each of the six pairings throughout the day lasted 45 minutes. The exercise for the day was Conway's Game of Life.

During the week after the event, I decided to come up with a complete implementation of the exercise including rendering to the console. This project is the result.

Seeds

The first command line parameter identifies which seed pattern to use:

If no parameter is given, the seed defaults to Pulsar.

Tick Sleep Interval

The optional second parameter controls the sleep interval between ticks. It defaults to 100ms.

Links

Screenshot of the Running Program

The following screenshot shows the R-pentomino seed after it has stabilised:

Screenshot1

The following screenshot shows the Gun seed in action:

Screenshot2

Zombies!

I have added support for zombies i.e. cells that have been alive and then died and then come back to life again. Zombie cells are displyed in magenta. Normal live cells are displayed in cyan. Here is an updated screenshot of the R-pentomino seed showing some zombie cells.

Screenshot3

About

Game of Life C# console application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages