Skip to content

Instantly share code, notes, and snippets.

@YetAnotherMinion
Created June 24, 2015 16:50
Show Gist options
  • Save YetAnotherMinion/a1978c7e709e08ad3012 to your computer and use it in GitHub Desktop.
Save YetAnotherMinion/a1978c7e709e08ad3012 to your computer and use it in GitHub Desktop.
if else in brainfuck
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 ]
@YetAnotherMinion
Copy link
Author

see here for source and explanation http://stackoverflow.com/a/13327857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment