Tool for decoding / encoding in ReverseFuck. ReverseFuck is an obfuscated programming language that basically reverses Brainfuck operators.
ReverseFuck - dCode
Tag(s) : Programming Language
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
ReverseFuck looks like BrainFuck but has the particularity of inverting the BrainFuck language operators to make it even more incomprehensible: the + becomes a -, an opening bracket [ becomes a closing bracket ], and so on. Here is the table to convert BF to BrainFuck and conversely :
|+||-||Pointer value - 1|
|-||+||Pointer value + 1|
|>||<||Pointer position - 1|
|<||>||Pointer position + 1|
|]||[||Loop while pointer > 0|
|.||,||Store input in pointer position|
|,||.||Output ASCII value of pointer|
Example: The ReverseFuck program ----------]<-<---<-------<---------->>>>+[<<<------------,+++++++++++++,<++++++++++++++,>,<++++,-,>, corresponds to Brainfuck code ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++++++++++++.-------------.>--------------.<.>----.+.<. and as the two programs are identical, they display as output REVERSE.
To know what a ReverseFuck code does, run it with a ReverseFuck interpreter, that can compile it and take an argument in parameter if necessary. dCode displays in a console each byte returned as output as well as the final memory register.
A program in ReverseFuck is visually very similar to a Brainfuck code with the 8 characters +-<>., the only difference being the change of replacement by their opposite.