Skip to content

arnaud-ma/GridSim.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GridSim

Stable Dev codecov Build Status Code Style: Blue

GridSim offers simple simulations for a particular random game, leveraging the performance and flexibility of Julia.

Installation

In a Julia REPL:

julia> ]add https://github.com/arnaud-ma/GridSim.jl

Overview

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.

Usage

Refer to the documentation.