GridSim offers simple simulations for a particular random game, leveraging the performance and flexibility of Julia.
In a Julia REPL:
julia> ]add https://github.com/arnaud-ma/GridSim.jl
The example created in the documentation:
https://www.youtube.com/watch?v=aSCUlpiplb0.
In GridSim, the goal is to simulate a dynamic grid of pixels according to specific rules. The game's rules are as follows:
- Each pixel on the grid has unique characteristics such as value, color, or any other attributes defined by the user.
- At each step of the simulation (referred to a day), a pixel is randomly replaced by another pixel from the grid, determined by a Julia function. The function typically considers the surrounding pixels, limited to eight (or fewer if the pixel is at the border).
- The game proceeds until the grid reaches a stable state where no pixel can be further replaced, although such a state may never be achieved.
Refer to the documentation.