Skip to content

Game of life interactive simulation with advanced controls (copy, paste, drag and file export/import, generation velocity). Written in C#.

Notifications You must be signed in to change notification settings

AlessandroCaula/GameOfLife

Repository files navigation


Game Of Life Program.


GAME OF LIFE RULES:

The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead (or populated and unpopulated, respectively). Every cell interacts with its eight neighbors, which are the cells that horizontally, vertically, or diagonally adjacent. At each step in time, the following transition occur:

  1. Any live cell with fewer than two live neighbors dies, as if by underpopulation.
  2. Any live cell with two or three live neighbors lives on to the next generation.
  3. Any live cell with more than three live neighbors dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.

GIF 1
GIF 1

Implemented Command:

  • Left mouse click → Select / Make Cell Alive
  • Right mouse click → Erase / Kill Cell
  • Ctrl + Right mouse click + Drag → Select Multiple Cell
  • Ctrl + C or X (After Multiple Cell Selection) → Copy / Cut Selected Cells
  • Ctrl + V → Paste Selected Cells
  • Upload from file
  • Export to file

For more Patterns to upload:

About

Game of life interactive simulation with advanced controls (copy, paste, drag and file export/import, generation velocity). Written in C#.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages