Skip to content

Implementation of Conway's Game of Life in Excel VBA

License

Notifications You must be signed in to change notification settings

cygnan/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game-of-life

MIT License Download

Implementation of Conway's Game of Life in Excel VBA.

GIF

What's Conway's Game of Life?

It's a simulation game of real life processes. It follows the rules below.

Rules

All eight of the cells surrounding the current one are checked to see if they are on or not. Any cells that are on are counted, and this count is then used to determine what will happen to the current cell.

  1. Death: if the count is less than 2 or greater than 3, the current cell is switched off.
  2. Survival: if (a) the count is exactly 2, or (b) the count is exactly 3 and the current cell is on, the current cell is left unchanged.
  3. Birth: if the current cell is off and the count is exactly 3, the current cell is switched on.

Quoted from Wolfram MathWorld.

Usage

  1. Open game-of-life.xlsm.
  2. Then, push the "START" button to start a simulation.
  • Click or double click on cells to fill in light blue.
  • Right click to empty.
  • You can select multiple cells. If the cell at the upper-left of the selected range was off, all of the selected cells will be switched on. Otherwise, switched off.
  • Push the "CLEAR" button to empty all of the cells.
  • The rules can be changed by switching on or off the checkboxes.
  • If the "PROTECTED VIEW" alert is displayed, push the "Enable Editing" button.
  • If the "SECURITY WARNING" alert is also displayed, push the "Enable Content" button.

Contribution

You can open issues or submit pull requests for bugs you've found.

License

Copyright © 2017 Cygnan
Licensed under the MIT License, see LICENSE.md.

About

Implementation of Conway's Game of Life in Excel VBA

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published