Learning how agent based modelling works using Agents.jl by creating Conway's game of life. This may not be a prime example, but is still neat nonetheless.
example.mp4
This was based on the Schelling's segregation model tutorial since I did not realize the Conway's game of life tutorial existed until after I made this.
The gameoflife.jl
file contains the main game of life code. The notebook file is a Pluto notebook for testing and making an mp4.
The interactive file may be the more interesting file. It uses Makie through Agents.jl to create an interactive plot so you can step through each frame by hand.
Much better explanations are in the links at the bottom of the page.
If needed, navigate to the working directory, activate, then instantiate the project environment:
julia> ]
pkg> activate .
pkg> instantiate
To run the interactive version:
$ julia --project=. gameoflife_interactive.jl
Running the Pluto notebook version requires Pluto installed in Julia.