-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwufier.bf
53 lines (53 loc) · 2.18 KB
/
uwufier.bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| |
O~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~O
| The brainfuck uwufier |
| (c) lasermtv07 2023 |
| released under the WTFPL license |
O~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~O
>>>>,
[
[ ~copy input for 4 checks
-<+> >>>+ >>>>+
>>>>+ >>+ <<<<<<<<<<<<<
]
<<<<++++++++++[>+++++++<-]>++++++ ~saves 76 (L) to appropriate cell
>>[<<->>-]<<[>>>>>]< ~check by itself (if specific cell =0 match)
~note: checks are done in such way that a constant (eg 76) and input are decremented
and then remainder is checked on the constant
+++++++++[>+++++++++<-]>++++++ ~saves 87 (W) to cell
>[>>]<. ~print W
[ ~reset array
[-]>>>>>[-]>[-]>>>>[-]>>>>[-]>>[-]
<<<<<<<<<<<<<<<<
]
<<[-]> ~start check for R
[
<<<++++++++++[>++++++++<-]>++ ~saves 82 (R) to appropriate cell
>>[<<->>-]<<[>>>>>] ~check by itself (if specific cell =0 match)
<+++++++++[>+++++++++<-]>++++++ ~saves 87 (W) to cell
>[>>]<. ~print W
[ ~reset array
<<<<[-]>>>>[-]>>>>>>[-]>>>>[-]>>[-]
<<<<<<<<<<<<<<<<
]
<<[-]>
[
<<<<[-]++++++++++[>++++++++++<-]>++++++++ ~saves 108 (l) to appropriate cell
>>>[<<<->>>-]<<[>>>>>] ~check by itself (if specific cell =0 match)
+++++++++++[>+++++++++++<-]>-- ~saves 119 (w)
<<[>>>>>>]>>. ~print w
[ ~reset array
>>>>>[-]>>[-]<<<<<<<[-]
<<<<<[-]<<<<[-]
]
<
[
<<<[-]++++++++++[>+++++++++++<-]>++++ ~saves 114 (r)
>>[<<->>-]<<[>>>>>>>]<<<. ~check and print
<<[>>>>>>>] ~helper to reset array
>>[-]<<<[-]<[-]<<<[-]<<[-]<<<[-]<<<<[-]< ~reset array
]
]
]
>>>>,
]