Created
June 24, 2015 16:50
-
-
Save YetAnotherMinion/a1978c7e709e08ad3012 to your computer and use it in GitHub Desktop.
if else in brainfuck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(a>=b) and else | |
assume input array is like this | |
0 1 0 A B 0 | |
and we are pointing to A | |
+>+<[->-[>]<<]<[- BLOCK_A_GE_B]<[-< BLOCK_A_LT_B ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see here for source and explanation http://stackoverflow.com/a/13327857