Skip to content

MattBann/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

This is a Java based implementation of John Conway's game of life.

Explanation

In a grid, each cell is either 'alive' (black) or 'dead' (yellow). What happens to a cell depends on the number of alive neighbours. If alive:

  • The cell survives if there are 2 or 3 neighbours
  • Otherwise, it dies

If dead:

  • The cell comes to life if there are exactly 3 neighbours

For a better explanation: https://youtu.be/R9Plq-D1gEk

Usage

This implementation allows you to change the closed grid size, randomise the grid and save/load the grids state. Click cells to switch their state and use the buttons at the bottom to control the simulation

About

A Java implementation of John Conway's Game of Life

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages