Skip to content

jotaviobiondo/elixir-game-of-life

Repository files navigation

Conway's Game of Life

Elixir CI

A Game of Life implementation to learn Elixir.

The initial implementation was running as a CLI application. Later this was improved with an additional LiveView web application.

Live demo: https://elixir-game-of-life.onrender.com/

Usage

Requirements

Install the dependencies:

mix deps.get

Running Tests

Execute the following command to run the tests:

mix test

Running the CLI

Screen.Recording.2025-08-22.at.20.43.55.mp4

To run the CLI, execute the following script:

mix cli.run

The CLI accepts the following optional arguments:

  • --generations or -g: The number of generations (iterations). Default: 5.
  • --rows or -r: The rows size of the grid. Default: 10.
  • --columns or -c: The columns size of the grid. Default: 10.

Running the LiveView application

image

To run the LiveView application, execute the following script:

iex -S mix phx.server

About

Conway's Game of Life implementation to learn Elixir LiveView.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published