Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Explore the Wireworld Turing-complete cellular automaton
Contributed by: Daniel Sanchez
Wireworld is a Turing-complete cellular automaton first proposed by Brian Silverman in 1987 suited for simulating logic gates and other real-world computer elements.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["DanielS/Wireworld"]
To load the code after installation, evaluate this code:
Needs["DanielS`Wireworld`"]
Represent a valid Wireworld state using Wireworld[…]:
| In[1]:= | ![]() |
| Out[1]= |
Plot the state using WireworldPlot:
| In[2]:= |
| Out[2]= | ![]() |
Evolve the state for 2 steps:
| In[3]:= |
| Out[3]= |
Plot each state in the evolution:
| In[4]:= |
| Out[4]= | ![]() |
Test whether a matrix is a valid Wireworld state:
| In[5]:= | ![]() |
| Out[5]= |
Open a window and draw/edit a Wireworld state:
| In[6]:= | ![]() |

Animate the evolution of an OR gate fed by two electron sources:
| In[7]:= | ![]() |
| Out[7]= | ![]() |
Animate the behaviour of an OR gate, an XOR gate and an inverter:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Wolfram Language Version 13.0