Created
March 24, 2013 15:05
-
-
Save fwiffo/5232275 to your computer and use it in GitHub Desktop.
The Towers of Hanoi in Brain****.
This file contains hidden or 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
| >++++[<++++++++>-]<.......>++++[<++++++++>-]<+.>++++[<-------->-]<-.......... | |
| ...>+++++[<+++++++>-]<-.>+++++[<------->-]<+.............>+++++[<+++++++>-]<. | |
| [-]++++++++++.>+++++[<++++>-]<++.......>++++++++++[<+++++++++>-]<++.[-]>++++[ | |
| <++++++++>-]<.............>++++++++++[<+++++++++>-]<++.[-]>++++[<++++++++>-]< | |
| .............>++++++++++[<+++++++++>-]<++.[-]++++++++++.>+++++[<++++>-]<++... | |
| ....>++++++++++[<+++++++++>-]<++.[-]>++++[<++++++++>-]<.............>++++++++ | |
| ++[<+++++++++>-]<++.[-]>++++[<++++++++>-]<.............>++++++++++[<+++++++++ | |
| >-]<++.[-]++++++++++.>+++++[<++++>-]<++....>++++++++[<++++++++++>-]<-.>++++++ | |
| +[<------->-]<-.....>+++++++[<+++++++>-]<+.[-]>++++[<++++++++>-]<....>+++++[< | |
| ++++>-]<.>+++++[ A B C <---->-]<.....>+ | |
| +++++++++[<+++++ | | | ++++>-]<++.[-]>+ | |
| +++[<++++++++>-] | | | <.............>+ | |
| +++++++++[<+++++ o=====o 4 | | ++++>-]<++.[-]++ | |
| ++++++++.>+++++[ o=======o 5 | o 1 <++++>-]<++...>+ | |
| +++++++[<+++++++ o=========o 6 | o=o 2 +++>-]<-.>++++++ | |
| +[<------->-]<-. o===========o 7 | o===o 3 ......>+++++++[< | |
| +++++++>-]<+.[-] =========================================== >++++~[<++++++++ | |
| >-]<...>+++++[<+ | - --+-+++ The Towers of Hanoi +++-+-- - | +++>-]<+.>+++++[ | |
| <---->-]<-|..... =========================================== >-+++++++++++[<+ | |
| :++++++++>-]<++> Copyright (c) Tom Schumm <[email protected]> <[-]>++++[<+++++ | |
| +++>-]<.............>++++++++[<++++++++++>-]<-.[-]>++++[<++++++++>-]<...>++++ | |
| [<++++>-]<+.[-]++++++++++.>+++++[<++++>-]<++..>++++++++[<++++++++++>-]<-.>+++ | |
| ++++[<------->-]<-.........>+++++++[<+++++++>-]<+.[-]>++++[<++++++++>-]<..>++ | |
| +++[<++++>-]<++.>+++++[<---->-]<--.....>++++++++++[<+++++++++>-]<++.[-]>++++[ | |
| <++++++++>-]<...~.........~>++~+++~+++[<+~~+++++++++>-]<-.>+ ++++++[<-------> | |
| -]<-.>+++++++[<+ ++++++>-]<+.[-]>++++[<++++++++>-]<..>+++[<+ +++++>-]<.[-]+++ | |
| +++++++.>+++++[< + + ++>-]<+ +.> ++++++ ++ [<+++ +++++++ > - ]<-.>+++++++[<-- | |
| ----->-]<-...... .....>+++++++[<+++++++>-]<+.[-]>++++[<+++++ +++>-]<.>++++[<+ | |
| +++++>-]<-.>++++ [<------>-]<+ . . ...>+ + ++++++++[<++++++ | |
| +++>-]<++.[-]>++ ++[<+++++++ + > -]< . ..........>+++++ | |
| +++[<++++++++++> -]<-.>+++ + + + + [<------->-]<-.. | |
| .>+++++++[<+++++ ++>-]<+ . [ - ]>++++[<++++++++ | |
| >-]<.>+++++[<+++ + > - ]<-.[-]+++++++++ | |
| +.>+++++++[<++++ + + + >-]<++|......... | |
| :............... . . . ................ | |
| [-]++++++++++.>+++++++++[<+++++++++>-]<.[-]>++++[<++++++++>-]<..+++++++++++++ | |
| .-------------.+++++++++++++..>++++[<++++>-]<.>++++[<---->-]<.>++++[<++++>-]< | |
| ..>++++++[<----->-]<+.>+++++++[<+++++++>-]<+++.>+++++[<++++>-]<.---.[-]>++++[ | |
| <++++++++>-]<.>+++++++[<+++++++>-]<+++.>+++++[<+++++>-]<++.++++++++.>+++[<--- | |
| --->-]<.+++++++++++++.+.[-]>++++[<++++++++>-]<.>++++++++[<++++++++++>-]<-.--- | |
| ------.[-]>++++[<++++++++>-]<.>+++++[<++++++++>-]<.>+++++[<+++++>-]<.++++++++ | |
| +++++.+.------.[-]>++++[<++++++++>-]<.>++++++[<+++++>-]<-..>++++[<---->-]<.>+ | |
| +++[<++++>-]<.>++++[<---->-]<..-------------.+++++++++++++.-------------..>++ | |
| ++++[<++++++++++>-]<+.[-]++++++++++.>+++++++[<+++++++>-]<++.................. | |
| .........................[-]++++++++++..>++++++[<++++++++++>-]<-.>+++++++[<++ | |
| ++++>-]<-.++++++.>+++[<----->-]<.+++++++++++++.[-]>++++[<++++++++>-]<.+++.--- | |
| .>++++++++[<++++++++++>-]<-.---------.[-]>++++[<++++++++>-]<.>+++++++++[<++++ | |
| +++++>-]<+.---------.+++++.-------.++++++++++++.[-]>++++[<++++++++>-]<.++++++ | |
| ++.>+++++++[<++++++++++>-]<-.------------.>++++[<++++++>-]<-.[-]>++++[<++++++ | |
| ++>-]<.>+++[<++++++>-]<.+++..---------.------------.>++++++[<+++++++++++>-]<. | |
| >+++++[<++++>-]<-.-.[-]>++++[<++++++++>-]<.>+++++++++[<+++++++++>-]<+.------- | |
| ------.++++++++.--------.++++++++.-----------.+++.+++++++++++++.[-]>++++[<+++ | |
| +++++>-]<.>++++++++[<++++++++++>-]<-.++++++.-.----.+++++.-.[-]>++++[<++++++++ | |
| >-]<.>+++++++++[<++++++++>-]<+.++++++++++.[-]>++++[<++++++++>-]<.>+++[<++++++ | |
| >-]<.>+++++++[<++++++>-]<++.>++++[<++++>-]<.[-]>+++++++[<++++++>-]<-.>++++[<+ | |
| +++>-]<+.>+++++[<----->-]<-.[-]>>>>>>>+>++>>,----------[--------------------- | |
| -----------------<[>>+<<-]>>[<<++++++++++>>-]<[<+>-],----------]<>[-]>+[[-]<< | |
| [>+><<<<<[>>>>>+>+<<<<<<-]>>>>>>[<<<<<<+>>>>>>-]<<<<[>>>>+>+<<<<<-]>>>>>[<<<< | |
| <+>>>>>-]<<<<<<[>>>>>>+>+<<<<<<<-]>>>>>>>[<<<<<<<+>>>>>>>-]<<<<<[>>>>>+>+<<<< | |
| <<-]>>>>>>[<<<<<<+>>>>>>-]<<<<<[>>>>>+>+<<<<<<-]>>>>>>[<<<<<<+>>>>>>-]<<-]>[- | |
| ]<[-]<[-]<[-]<[-]<[>+>+<<-]>>[<<+>>-]<[[-]<>>>>>>+++++++[<+++++++++++>-]<.>++ | |
| +++[<+++++++>-]<-.+++++++.>++++[<---->-]<-.>+++++++[<---------->-]<+.>+++++++ | |
| [<++++++++++>-]<--.+++++.++++++++++.--------.>++++++++[<--------->-]<---.[-]< | |
| <<<<<[>>+>+>+>+<<<<<-]>>>>>[<<<<<+>>>>>-]>>>>>>++[<<<<<<<>+++++++++<[>>>+<<[> | |
| +>[-]<<-]>[<+>-]>[<<++++++++++>>>+<-]<<-<-]>>>>[<<<<+>>>>-]<<<<>[-]<>>>>>>>-] | |
| <<<<<<<[++++++++++++++++++++++++++++++++++++++++++++++++.-------------------- | |
| ----------------------------[>++++++++++[<<----------<---------->>>-]<-]]<>++ | |
| +++++++<[>>>+<<[>+>[-]<<-]>[<+>-]>[<<++++++++++>>>+<-]<<-<-]>>>>[<<<<+>>>>-]< | |
| <<<>[-]<[++++++++++++++++++++++++++++++++++++++++++++++++.------------------- | |
| -----------------------------[<---------->-]]<+++++++++++++++++++++++++++++++ | |
| +++++++++++++++++.[-]<<>>>>>>++++[<++++++++>-]<.>+++++++[<++++++++++>-]<.++++ | |
| ++++++++.---.--.>+++++++[<----------->-]<.[-]<<<<<<<<++++++++++++++++++++++++ | |
| +++++++++++++++++++++++++++++++++++++++++.----------------------------------- | |
| ------------------------------>>>>>>++++[<++++++++>-]<.>+++++++[<++++++++++++ | |
| >-]<;.-----.>++++++++[<---------->-]<+.[-]<<<<<>>++++++++++++++++++++++++++++ | |
| +++++++++++++++++++++++++++++++++++++.--------------------------------------- | |
| --------------------------~>>>>>>+++++[<+++++++++>-]<+.>++++++[<------>-]<.[- | |
| ]<<<<<<<[>>>>>+<<<<<-]>[<+>-]>>>>[<<<<+>>>>-]<<->>][-]<[>+>+<<-]>>|[<<+>>-]<] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment