this post was submitted on 12 Jul 2023
338 points (96.7% liked)

Asklemmy

43945 readers
846 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

For me it is Cellular Automata, and more precisely the Game of Life.

Imagine a giant Excel spreadsheet where the cells are randomly chosen to be either "alive" or "dead". Each cell then follows a handful of simple rules.

For example, if a cell is "alive" but has less than 2 "alive" neighbors it "dies" by under-population. If the cell is "alive" and has more than three "alive" neighbors it "dies" from over-population, etc.

Then you sit back and just watch things play out. It turns out that these basic rules at the individual level lead to incredibly complex behaviors at the community level when you zoom out.

It kinda, sorta, maybe resembles... life.

There is colonization, reproduction, evolution, and sometimes even space flight!

you are viewing a single comment's thread
view the rest of the comments
[–] Djh8878@kbin.social 3 points 1 year ago (1 children)

What are some other rules to the excel example you gave, kinda want to try programming something like this to see how it’d play out

[–] Kolanaki@yiffit.net 3 points 1 year ago (1 children)

Just look up "The Game of Life." It's not really a spread sheet, that's simply how it's displayed (grids of pixels that are either living, dead, or food) and it just kinda simulates an ecosystem in the most very, very basic of ways. All you can do to influence the game is change what a grid contains, with the goal (if you can say it has any) of keeping a sustainable system going.

[–] aCosmicWave@lemm.ee 1 points 1 year ago

Yep! The spreadsheet is just an analogy I used to help unfamiliar people visualize what I was talking about.

The actual rules for Conway's Game of Life are as follows:

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction