BounceFuck Code
BounceFuck is an esoteric programming language written in two dimensions where the code flow can move in 8 different directions.
(back to Programming)
This code is the code for simple addition with a few minor changes. It can subtract any two numbers between 0 and 9 as long as the difference is between 0 and 9.
1
2
3
4
5
6
7
8
| / !|-!\}-v{.
\{\/\/\ {/
/ -----\
,/-----/
}\-- --\
,/-----/
$\-----\
\/\/\/\/ |
Note that the start has been rearranged from the addition-script. This is because the second input must be subtracted by 48 and not the first, since subtraction, as opposed to addition, is not symmetrical.
Looks like my previous attempt at an addition-only calculator in BounceFuck was very ineffective. This script does the same thing, but in about 1/3 of the space.
1
2
3
4
5
6
7
8
| /,!|+!\{-v}.
\}\/\/\ }/
$,-----\
/-----/
\-- --\
/-----/
\-----\
\/\/\/ |
The difference is that here, 48 is subtracted only once. The other addition-calculator subtracted 48 from two memory cells and added it to one.
The following BounceFuck code makes a very simple addition-only calculator. It can add numbers between 0 and 9 as long as the sum is less than 10. The two numbers are taken as arguments.
1
2
3
4
5
6
7
8
9
10
| /+|+!,O!O!}+|
}/+{ \O/\/\/\/\
+}O$,!+-----\+++\
!\/ --/-----/+++/
O! /}}\-----\+++\
+\<-/+/-----/+++/
+/\ {\\-----\+++\
+++^\{ \/\/\/+++/
++\+O\!\! |\/\/
\/ Q /.+++/ |
The first part takes the two arguments and subtracts 48 (the ASCII number for 0) from both of them. This leaves us with their numerical values in the first and second cells. After this, two loops transfer first the second cell and then the first cell to the third cell. 48 is added again to the third cell, and the result is printed.
This BounceFuck in BounceFuck prints BOUNCEFUCK.
$ O O O / \\ /O / \\ / -\\
_ O O /
| / / \\ _
! ! ! O \\----\\
\\ O Q . /! -/
| . O -
| .
O O O O -
\\ Q O O O O _ Q/ O / \\------./
/-------O / \\ O.----\\ / \\
. -
. -
! ! O Q-
/----- / / Q
O -
- .
O O -
_ O O O-----/ \\ /.
Beautiful, isn’t it?blondes pornstarsbee porn blondie actressporn blondie dagwoodblonds shaving pornblone teen porngothic blood porn dollsbloodrayne pornporn videogame bloodryne Map
This BounceFuck code outputs the alphabet, from A to Z.
/\\/\\/\\O}\\/\\
$ \\ #
/ / //>{\\
\\ \\ \\ - .
/ / / }
\\ \\ /\\ /
/Q\\/\\/\\/ \\/
\\ Q! |
The first memory cell is first incremented to 65 (ASCII A) and the second to 26 (the number of letters in the alphabet). Then, the first is incremented and the second is decremented simultaneously until the second memory cell reaches 0, at which point the script terminates. The first memory cell is printed at every lap in the loop.club pornporn clubbingporn cmic bookcoach pornporna cobrajpegs gay porn cockcock raw pornporn sucking cock sluts Map
Everyone knows that programming can get a bit boring after a while. How many times have you not become bored of writing your code just like you write text, line after line, from left to right? Most have.
That is where esoteric programming languages come into the picture. From Wikipedia:
An esoteric programming language (sometimes shortened to esolang) is a programming language designed as a test of the boundaries of computer programming language design [...]
Give yourself a challenge and test your boundaries, too. In BounceFuck, the code is written in a two-dimensional matrix, and the code flow can be redirected into eight different directions with mirrors and arrows.
Here is the Hello World example from the BounceFuck main page:
/ Q/++++++\\
Q/\\/\\/\\Q/!}| _+
$++++++\\.!++{\\|
/++++++/+++.\\.+
\\++++++\\++++Q++
/++++++/\\O - ++
\\++++++\\ -/+++\\
/++++++/ -/\\++/
\\/\\/\\/\\.Q----\\ /
/-.+++.OQ----/
\\-----.Q
.
I’ve also written an online interpreter for BounceFuck in PHP.