Electrons

From Esolang
Jump to navigation Jump to search

Electrons is a celluar automata about electrons.
A program looks like this:
wwwwwwwwwwwwwwwwwwwwwwwwww
e
wwwwwwwwwwwwwwwwwwwwwwwwww

As the code iterates, the electron will go forward. If a electron collides, they will bounce. Also n stands for nothing. Electrons will try to move forward in a open direction.
Also the bounce looks like a mirror. The code
wwwww
ennnw
nnwnw
nnwnw
nnwew
nnwww
is counted a valid oscillator where 2 electrons collide and reflect each other, which then it reflects the walls then again...