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/
Install the dependencies:
mix deps.get
Execute the following command to run the tests:
mix test
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:
--generationsor-g: The number of generations (iterations). Default:5.--rowsor-r: The rows size of the grid. Default:10.--columnsor-c: The columns size of the grid. Default:10.
To run the LiveView application, execute the following script:
iex -S mix phx.server