https://github.com/shredengineer/hexacon
Conway's Game of Life on a Hexagonal Grid
https://github.com/shredengineer/hexacon
conways-game-of-life grid hexagonal html javascript jquery
Last synced: 3 months ago
JSON representation
Conway's Game of Life on a Hexagonal Grid
- Host: GitHub
- URL: https://github.com/shredengineer/hexacon
- Owner: shredEngineer
- Created: 2021-01-25T11:13:50.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-25T11:29:30.000Z (about 5 years ago)
- Last Synced: 2025-01-21T09:23:58.718Z (about 1 year ago)
- Topics: conways-game-of-life, grid, hexagonal, html, javascript, jquery
- Language: HTML
- Homepage:
- Size: 237 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hexacon
Conway's Game of Life on a Hexagonal Grid (implemented in JavaScript)
Play around with it here: **https://paulwilhelm.de/hexacon.html** [*Epilepsy Warning*]
Discussion Thread: https://www.reddit.com/r/holofractal/comments/l4lmrl/enjoy_this_trippy_hexagonal_version_of_conways/
I assume most of you know Conway's Game of Life -- a simple set of rules
over a square digital grid that shows intriguing evolution and self-organization.
Each cell's lifecycle is determined by its four or eight neighbours -- depending on the implementation.
Now I figured that a hexagonal grid would be the most natural way to implement this.
Why? Because in hexagonal coordinates, there is no ambiguity between the number of
possible neighbors -- each cell is perfectly surrounded by exactly six neighbors.
The results are quite trippy. :)
