Menu

Is it possible to display the number of cells in a given state?

taternik
2020-12-09
2020-12-09
  • taternik

    taternik - 2020-12-09

    Golly displays in the status bar the total number of cells in a non-zero states (called "population") . I am experimenting with some three state rules, and I would like to know how many cells are in sate 1 and in state 2. Is it possible to display these numbers in the status bar, with lua scripting or otherwise?

     
  • Maks Verver

    Maks Verver - 2020-12-09

    If the grid size is reasonable small, just enumerating all cells is fairly easy to do with a Lua script. See attachment for an example. Note that the output message shows up in the status bar on the top left (under "Generation=...").

     
    • taternik

      taternik - 2020-12-09

      Maks,

      Thanks a lot, this is exactly what I needed. Is there a way to execute this script automatically every time step?

       

Log in to post a comment.