Circute

From Esolang
Jump to: navigation, search

Circute is a cellular automaton (and quite arguably an esoteric programming language) developed by Chris Pressey in 2005 as a test of the wire-crossing problem. It consists of nothing but logical NAND gates connected by wires. It was designed to be implementable in ALPACA.

Syntax[edit]

  • = - wire. Sparks pass through.
  • - - tail, used to make sparks act more like snakes.
  • # - spark. These spread across wires.
  • N - NAND gate. If there's a free wire directly along the left or the right, send a message along any wire directly above or below.

Examples[edit]

Note: those marked with a * must be replaced with either a wire (=) or a spark(#). These just indicate where everything goes.

AND gate[edit]

*==     ==*
  =     =
  ===N===
     =
     =
   =====
   =   =
   =#N#=
     =

OR gate[edit]

*==     ==*
  =     =
===== =====
=   = =   =
==N== ==N==
  =     =
  ==#N#==
     =
     =

One-fire switch(OSC->OFF)[edit]

  ===#N=========
  =     =   =
==N== ===== =
=   = =   = =
===== ==N== =
  =     =   =
  *     =====  

Tiny oscillator[edit]

Note: The tails mark the direction.

#N=
 ==---------

Fast oscillator[edit]

 =N#
#N=
  =-----

Has a period of three steps.

NOT gate[edit]

  *
  =
=====
=   =
==N==
  =
  =

Tiny NOT gate[edit]

*
=
=N#
 =
 =

External resources[edit]