Skip to content

This C# Windows Application project allows users to visualize and simulate the evolution of Conway's Game of Life, with basic features like cell toggling and advanced features like custom game colors and boundary behavior.

EthanStanks/Game-of-Life

Repository files navigation

Conway's Game of Life


Introduction

Conway's Game of Life is a cellular automaton created by John Horton Conway in 1970. It is a simulation of life and death of cells on a two-dimensional grid. This program is a Windows C# application that renders Conway's Game of Life with additional features listed below.

Basic Features

  1. Render Conway's Game of Life in a .NET application.
  2. Cells can be turned on and off by clicking on them with the mouse.
  3. Living cells with less than 2 living neighbors die in the next generation.
  4. Living cells with more than 3 living neighbors die in the next generation.
  5. Living cells with 2 or 3 living neighbors live in the next generation.
  6. Dead cells with exactly 3 living neighbors live in the next generation.
  7. Start, Pause and Next menu items and tool strip buttons.
  8. Randomizing the universe.
  9. Emptying the universe.
  10. Saving the current universe to a text file.
  11. Opening a previously saved universe.
  12. Show the current generation.
  13. Show the current number of living cells.
  14. Controlling how many milliseconds between new generations.
  15. Controlling the current size of the universe.
  16. Displaying the neighbor count in each cell.
  17. Implement a View Menu that toggles the grid on and off, toggles the neighbor count display.

Advanced Features

  1. Game Colors.
  2. Universe boundary behavior.
  3. Context sensitive menu.
  4. Heads up display.
  5. Settings.

Getting Started

  • Clone or download the project from the repository.
  • pen the project in Visual Studio.
  • Build and run the project.

Usage

  • Click on the cells in the grid to turn them on or off.
  • Click on the Start button to begin the simulation.
  • Click on the Pause button to pause the simulation.
  • Click on the Next button to advance the simulation by one generation.
  • Click on the Randomize button to randomly populate the grid.
  • Click on the Clear button to empty the grid.
  • Click on the Save button to save the current grid to a text file.
  • Click on the Open button to load a previously saved grid from a text file.
  • Use the Size button to adjust the size of the grid.
  • Use the Speed button to adjust the speed of the simulation.
  • Use the View menu to toggle the grid, neighbor count display and heads up display.

About

This C# Windows Application project allows users to visualize and simulate the evolution of Conway's Game of Life, with basic features like cell toggling and advanced features like custom game colors and boundary behavior.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages