GitHunt
AR

arnaud-ma/GridSim.jl

Simple package to simulate a random grid-based game

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.

Languages

Julia100.0%

Contributors

Latest Release

v0.1.0March 25, 2024
MIT License
Created March 25, 2024
Updated March 30, 2024