Skip to content

Commit

Permalink
BF samples from different sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmorgan committed Feb 13, 2024
1 parent d0623e8 commit 2f8d7b0
Show file tree
Hide file tree
Showing 14 changed files with 1,125 additions and 0 deletions.
34 changes: 34 additions & 0 deletions sample/99-bottles.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bf
<<<<<<<99 bottles in 1752 brainfuck instructions
by jim crawford (http://www (dot) goombas (dot) org/)
>++++++++++[<++++++++++>-]<->>>>>+++[>+++>+++<<-]<<<<+<[>[>+
>+<<-]>>[-<<+>>]++++>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<[[-]>>
>>>>[[-]<++++++++++<->>]<-[>+>+<<-]>[<+>-]+>[[-]<->]<<<<<<<<
<->>]<[>+>+<<-]>>[-<<+>>]+>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<
<[>>+>+<<<-]>>>[-<<<+>>>]++>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<
<[>+<[-]]<[>>+<<[-]]>>[<<+>>[-]]<<<[>>+>+<<<-]>>>[-<<<+>>>]+
+++>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<[>+<[-]]<[>>+<<[-]]>>[<
<+>>[-]]<<[[-]>>>++++++++[>>++++++<<-]>[<++++++++[>++++++<-]
>.<++++++++[>------<-]>[<<+>>-]]>.<<++++++++[>>------<<-]<[-
>>+<<]<++++++++[<++++>-]<.>+++++++[>+++++++++<-]>+++.<+++++[
>+++++++++<-]>.+++++..--------.-------.++++++++++++++>>[>>>+
>+<<<<-]>>>>[-<<<<+>>>>]>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<<<
[>>>+>+<<<<-]>>>>[-<<<<+>>>>]+>+<[-<->]<[[-]>>-<<]>>[[-]<<+>
>]<<<[>>+<<[-]]>[>+<[-]]++>>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<
+<[[-]>-<]>[<<<<<<<.>>>>>>>[-]]<<<<<<<<<.>>----.---------.<<
.>>----.+++..+++++++++++++.[-]<<[-]]<[>+>+<<-]>>[-<<+>>]+>+<
[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<<[>>+>+<<<-]>>>[-<<<+>>>]++++
>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<[>+<[-]]<[>>+<<[-]]>>[<<+>
>[-]]<<[[-]>++++++++[<++++>-]<.>++++++++++[>+++++++++++<-]>+
.-.<<.>>++++++.------------.---.<<.>++++++[>+++<-]>.<++++++[
>----<-]>++.+++++++++++..[-]<<[-]++++++++++.[-]]<[>+>+<<-]>>
[-<<+>>]+++>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<[[-]++++++++++.
>+++++++++[>+++++++++<-]>+++.+++++++++++++.++++++++++.------
.<++++++++[>>++++<<-]>>.<++++++++++.-.---------.>.<-.+++++++
++++.++++++++.---------.>.<-------------.+++++++++++++.-----
-----.>.<++++++++++++.---------------.<+++[>++++++<-]>..>.<-
---------.+++++++++++.>.<<+++[>------<-]>-.+++++++++++++++++
.---.++++++.-------.----------.[-]>[-]<<<.[-]]<[>+>+<<-]>>[-
<<+>>]++++>+<[-<->]<[[-]>>-<<]>>[[-]<<+>>]<<[[-]++++++++++.[
-]<[-]>]<+<]
6 changes: 6 additions & 0 deletions sample/bubblesort-2.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bf
Here is a Brainf*** program that bubblesorts its input and spits it out:
>>>>>,+[>>>,+]<<<[<<<
[>>>[-<<<-<+>[>]>>]<<<[<]>>
[>>>+<<<-]<[>+>>>+<<<<-]
<<]>>>[-.[-]]>>>[>>>]<<<]
2 changes: 2 additions & 0 deletions sample/cat.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bf
,+[-.,+]
2 changes: 2 additions & 0 deletions sample/hello.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bf
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
14 changes: 14 additions & 0 deletions sample/insertionsort.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bf
[isort.b -- insertion sort
(c) 2016 Daniel B. Cristofani
http://brainfuck.org/]
>>+>,+[-
<[
[>>+<<-]>[<<+<[->>+[<]]>>>[>]<<-]<<<
]>>[<<+>>-]<[>+<-]>[>>]<,+
]<<<[<+<]>[>.>]
++++++++++.
[-][This program sorts bytes of input using insertion sort.]
146 changes: 146 additions & 0 deletions sample/mandelbrot.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
#!/usr/bin/env bf
A mandelbrot set fractal viewer in brainf*** written by Erik Bosman
+++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[
>>>>>>>>>]+[<<<<<<<<<]>>>>>>>>>-]+[>>>>>>>>[-]>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>[-]+
<<<<<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>
>+<<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[-]+[>>>>>>[>>>>>>>[-]>>]<<<<<<<<<[<<<<<<<<<]>>
>>>>>[-]+<<<<<<++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>+<<<<<<+++++++[-[->>>
>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>+<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[[-]>>>>>>[>>>>>
>>[-<<<<<<+>>>>>>]<<<<<<[->>>>>>+<<+<<<+<]>>>>>>>>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>>
[>>>>>>>>[-<<<<<<<+>>>>>>>]<<<<<<<[->>>>>>>+<<+<<<+<<]>>>>>>>>]<<<<<<<<<[<<<<<<<
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>>>>>>>+<<<<<<<<<<<<<<<<<[<<<<<<<
<<]>>>>[-]+>>>>>[>>>>>>>>>]>+<]]+>>>>>>>>[-<<<<<<<<->>>>>>>>]+<<<<<<<<[->>>>>>>>
-<<[-<<<<<<+>>>>>>]<<<<<<[->>>>>>+<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[-]+>>>>>>[>>>>>>
>>>]>[-]+<]]+>[-<[>>>>>>>>>]<<<<<<<<]>>>>>>>>]<<<<<<<<<[<<<<<<<<<]>>>>[-]<<<++++
+[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>->>>>>>>>>>>>>>>>>>>>>>>>>>>-<<<<<<[<<<<
<<<<<]]>>>]
38 changes: 38 additions & 0 deletions sample/numwarp.bf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bf
>>>>+>+++>+++>>>>>+++>>+[
-,[----------[---[+<++++[>-----<-]+>[<+>--------[<+>-
[--->>+++++++++++++[<<[-<+>>]>[<]>-]<<
[+>+++++[<-------->-]<[<+>-]]]]]]]]
<
[<<++[>>>>>>>>>>>+<<<<<<<<<<<-]<<+>+>+>>>+>+>>+>+<<<<<-
[<<+>>>+>+>>>+<<<<<-
[<<<<+>>->>>>->>+<<<<-
[<<<<->+>>>>->>>->-<<<<<-
[<<<->>>>+<-
[<<<+>>>>->+>>+<<<<-
[<<<<+>->+>>>+>>>>+<<<<<-
[<<->>>->->>>-<<<<<-
[<<<<->+>>>>+>+>>>+<<<<<-
[<<<<+>>>>>>-<<-
[<<+>>>->>>>-<<<<<-
[>+>>>->+<<<<<-
[>>+<<-
[<<<->->>>->->>+<<<<-
[<<<+>+>>>+>+<<-
[>->-<<-
[<<->>>+>+<<-
[<<+>>>>>>->-<<<<<-
[<<<<->>->>-
[<<<<+>>>>>>>>+<<<<-
[<<<<->>+>>>>>>>+<<<<<-
[>->>>-<<<<-]]]]]]]]]]]]]]]]]]]]]
>[[<<<<<<<<<<<+>>>>>>>>>>>-]>]+>>>>>>>+>>+<]>
]<<[-]<[-[>>>>+<<<<-]]<<<<<<++<+++<+++[>]<[
>>>>>++++++++[<++++++<++++>>-]>>>[-[<+<<<<.>>>>>-]]<<+<<-<<<<[
-[-[>+<-]>]>>>[.[>]]<<[<+>-]>>>[<<-[<++>-]>>-]
<<[++[<+>--]>+<]>>>[<+>-]<<<<<<<<
]>>>>>++++++++++.>+[[-]<]<<<
]
[Enter a number using ()-./0123456789abcdef and space, and hit return.
Daniel B Cristofani (cristofdathevanetdotcom)
http://www.hevanet.com/cristofd/brainfuck/]
Loading

0 comments on commit 2f8d7b0

Please sign in to comment.