Driftdown
Jump to navigation
Jump to search
Driftdown is an esolang created by User:Tommyaweosme.
Mechanics
Bits go down until they reach one of four things.
X
If a bit drifts down onto an X, it flips. A 0 turns into a 1 and a 1 turns into a 0.
S
If two bits drift on each side of it, they switch places. A 01 turns into a 10, and a 11 turns into a 11.
A
If two bits drift on each side of it, the and gate happens and the A releases a bit according to the and gate.
N
If a bit drifts down onto an N, it splits on two sides of it.
A "v" can represent an input bit.
Scripts
Or gate
v v X X A X
Unfinished adder
This is not finished.
v v N N S A X X A X