socket.io Game of Life

The code is available at GitHub

Change your name ({{currentUser.username}})

Users ({{users.length}})

{{user.username}} typing...

Messages ({{messages.length}})

{{message.user.username || message.user.userId}} says:

{{message.chatMessage.body}}

{{message.user.username}} connected
{{message.user.username}} disconnected
{{message.data.oldUsername}} is now {{message.data.newUsername}}
{{message.user.username}} cleared messages
{{message.user.username}} started simulation
{{message.user.username}} paused simulation
{{message.user.username}} clicked on ({{message.x}}, {{message.y}})

Grid

Simulation: {{ running ? "Running..." : "Stopped" }}

Rules

  1. Any live cell with fewer than 2 live neighbours dies (underpopulation).
  2. Any live cell with 2 or 3 live neighbours lives on to the next generation.
  3. Any live cell with more than 3 live neighbours dies (overpopulation).
  4. Any dead cell with exactly 3 live neighbours becomes a live cell (reproduction).

Developed by manger.cl