𝔹oxΖ’βŠ™ck

From Esolang
(Redirected from Boxfuck)
Jump to navigation Jump to search

𝔹oxΖ’βŠ™ck is a esolang based on boolean modification using Functions with the only logic gate XNOR written using unicode box drawing.

booleans

To create a boolean:

β–“ is 1 and β–‘ is 0

Booleans are sent through wires(the box drawing) like this:

      β”·
β–“β”  ┨▓ β–“ β–“
        β”―

To apply the XNOR:

β””β•₯β”˜
β”Œβ•¨β”

The result passes through the left wire and the opposite passes through the right one. To save a variable:

╒═╗
─Aβ•‘
β•˜β•β•

Here the name is A but it can be as long as you want. The left input is what its set to. To refrence it:

┏━┓
┨Aβ” 
┗━┛

The variable will pass through both wires.

wires

A wire is any unicode box drawing thats not used as a command is not a double or heavy and is not a t junction

functions

A function is stored in a specific to section box. The top section is the name and the lower one is the function itself:

β”Œβ”€β”
β”‚Aβ”‚
β”Ÿβ”€β”§
┠─┨
┗━┛

All the left t junctions are the function inputs and the single uppermost t junction to the right is the output. To reference this function:

β”Œβ”€β”
β”‚Aβ”œβ”¬
β””β”€β”˜

The downwards part of the t junctions is the input. The top input of the function creation is the leftmost input of the reference. The output is the vertical

other

To copy A and delete B:

 B
Aβ”ΌA
 A

To do a crossing without this:

  A
  β”‚
B─▒─B
  β”‚
  A

If A is 0 send B, Else send 0:

A┬B
 C

useful functions

NOT function:

β”Œβ”€β”€β”€β”
β”‚NOTβ”‚
β”Ÿβ”€β”€β”€β”§
┃ β–‘ ┃
β” β”β”―β”Œβ”¨
β”ƒβ”‚β•žβ•‘β”ƒ
β”ƒβ””β”˜β””β”¨
┗━━━┛

XOR function:

β”Œβ”€β”€β”€β”€β”€β”
β”‚XOR  β”‚
β”Ÿβ”€β”€β”€β”€β”€β”§
β” β”β”Œβ”β”Œβ”€β”¨
β”ƒβ•žβ•‘β””β–’β”€β”¨
β” β”˜β””β”€β”˜ ┃
┗━━━━━┛

AND:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚AND        β”‚
β”Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”§
β”ƒβ”Œβ”€β”€β”€β”      ┃
┃│NOTβ”œβ”¬β”    ┃
β”ƒβ””β”€β”€β”€β”˜β”‚β”‚β”Œβ”β”Œβ”€β”¨
β” β”€β”€β”€β”€β”€β”˜β•žβ•‘β””β–’β”€β”¨ 
β”ƒβ”Œβ”€β”€β”€β” β”‚β””β”€β”˜ ┃
┃│NOTβ”œβ”¬β”˜    ┃
β”ƒβ””β”€β”€β”€β”˜β”‚     ┃
β” β”€β”€β”€β”€β”€β”˜     ┃
┗━━━━━━━━━━━┛

NAND:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚NAND          β”‚
β”Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”§
β”ƒβ”Œβ”€β”€β”€β”   β”Œβ”€β”€β”€β” ┃
┃│ANDβ”œβ”¬β”¬β”β”‚NOTβ”œβ”¬β”¨
β”ƒβ””β”€β”€β”€β”˜β”‚β”‚β”‚β””β”€β”€β”€β”˜β”‚β”ƒ
β” β”€β”€β”€β”€β”€β”˜β”‚β””β”€β”€β”€β”€β”€β”˜β”ƒ
β” β”€β”€β”€β”€β”€β”€β”˜       ┃
┗━━━━━━━━━━━━━━┛

See also