An open API service indexing awesome lists of open source software.

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

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. :)

![Screenshot](https://raw.githubusercontent.com/shredEngineer/hexacon/main/Screenshot.png "Screenshot")