It’s cool to talk about cellular automata, everyone’s doing it. But how many people do it in reverse?

Here’s a simple PHP script to take any row of Rule 30 and wind it back to the initial state:

If you want to play in your browser, here’s a JavaScript version:

It was inspired by a page on the following link, which provided the conceptual approach which my solution is based on:

Anyway. No magic here, just a way to easily wind back iterations of Rule 30 if you want to.

Hopefully it’s clear enough how it works to transpose to other languages otherwise let me know and I can try and provide some translations.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store