Skip to content
/ cgol Public

Conway's Game of Life. Offers preset lifecycles and interactive controls.

Notifications You must be signed in to change notification settings

jonush/cgol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

About

Conway's Game of Life was invented by mathematician John Conway. It is game that requires no players and will simulate life cycles on its own. This configuration does allow for initial interaction when setting up the game board. There are also options to randomize cell population or select preset cell grids. You can also control the speed of each cycle. The grid and cell structure were designed using <div>'s. Players have the option to manually populate the grid with cells.

Resources

This project was made using React. All features of the app were built using React hooks and function components. Most of the functionality was built using vanilla JavaScript. A part of the grid/cell logic was built using immer, an immutable-state package. The sound effects were implemented using a useSound hook.

Components

The app is split into two main components and loaded inside <App />:

  • <About />: Information about Conway's Game of Life and its rules
  • <Board />: All of the game logic for game controls, the grid, and cells

This project was bootstrapped with Create React App.

About

Conway's Game of Life. Offers preset lifecycles and interactive controls.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •