Mobius brainfuck
Jump to navigation
Jump to search
Mobius brainfuck is like brainfuck with finite unbounded cells. After one circle every number turns into its opposite. This allows to use only increment to decrease without wrap.
Instructions
Char | Equivalent C |
---|---|
+ | arr[ptr]++; |
> | arr[ptr++]*=-1;ptr%=N; |
[ | while(arr[ptr]){ |
] | } |
IO can be added if necessary.
Turing complete
Should be TC for large enough N but I don't know how large need N be.