Share your repls and programming experiences

← Back to all posts
CellSim — A cellular automata simulator (Including Conway's Game of Life!)
fuzzyastrocat (1284)

Many people know about the cellular automata Conway's Game of Life. But what few people realize is that the Game of Life is only one of a myriad of possible rule sets, each with unique behavior and incredible patterns, spaceships, and more.

I created CellSim to allow for unbounded exploration of the Cellular Automata world. It simulates any totalistic rule (in both the Moore or Von Neumann neighborhood) and most non-totalistic rules.

Now, if all this sounds like alien speak to you, I still encourage you to check it out! At the very least, you can play around with some of the built-in patterns I've included that I think are cool. Additionally, there is an Info page which can tell you a little more about Cellular Automata, and a Controls page which can tell you how to use the program.

The program can run a pattern of any size — it uses a modular cell-based calculation approach that can dynamically grow the field to simulate any possible pattern (though it will get rather slow if you do huge patterns).

Additionally, here are some of the basic controls:

  • Move the field of view with the arrow keys
  • Scroll to change the zoom
  • ENTER will toggle edit/run mode, where you can edit/create a pattern and then play it
  • You can export patterns using the e key — just hit e, click the upper-left of the area you want to export, move your mouse to the lower right of the area you want to export (the area you're selecting will display in blue) and then click to export it! The .rle will show up in the box in the sidebar, copy-and-paste it into a text file for storage. (You can then copy-and-paste it back into the program later and click "Parse .rle" to load it.)
  • You can edit the rule by clicking on either the B or S sections in the sidebar and typing in the numbers there.
  • You can make a random pattern by clicking the R key.
  • In the pattern selector, use the LEFT and RIGHT arrows to switch between different rules.

I hope you enjoy! If you have any questions, feel free to put them here!

bowmand117 (3)

i messed around with this so much it crashed! XD

SwaroopBappanad (45)

This is really cool. Great Job, 15/10!

fuzzyastrocat (1284)

@DJWang Thank you! (I'm a bit sad this project didn't get much attention, but oh well)

DJWang (1247)

@fuzzyastrocat That is because only smart people who understand these kind of things like them (and there aren't too many smart people)

Coder100 (10843)

why do you scroll up to zoom out smh

fuzzyastrocat (1284)

@Coder100 I'm not sure, I suppose I was thinking Natural Scrolling? I'll change that right now.

Barry123 (86)

The starting screen is kind of like space invaders lol

fuzzyastrocat (1284)

@Barry123 Ha! Yeah I can definitely see the comparison there

Kookiez (225)
  1. it sounds like alien to me
  2. this is awesome! :)
fuzzyastrocat (1284)

@OrangeJooce123 Ha, I hope it sounds less alien-y soon!
(And thanks, this definitely took a while to make!)