brainfuck_converter 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brainfuck_converter.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 826d980c5b711943c207a5fe68a7e3f3df8f224151673b563cab4cc876793dbf
|
4
|
+
data.tar.gz: 0f39cab2d49c76ec7f60cbc0eb23edb2daeeece9aa23dc80511bccba95bd6b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fedc5430e6289ef9a3c2d687f26a524c3e0b857adfa2976b449a589b6341b1ea110f488cbe12b56301340591e8d98540e7b8de32c536c7512d58c50688b74b08
|
7
|
+
data.tar.gz: cefc521ff6f60914354e3a98e687080f5dc353898d87c744df95224bdeb75bb06e2ee2fe596b4e968477a6331acc9e5267ade92ad628fc342ee0a1f3f78bbc9a
|
data/lib/brainfuck_converter.rb
CHANGED
@@ -40,7 +40,7 @@ class BrainfuckConverter
|
|
40
40
|
# con.convert 'Hallo Welt!', 15 # => 'Hallo Welt!'
|
41
41
|
# con.code # => '+++++++[>+>++>+++>++++>+++++>++++++>+++++++>+++++... too long'
|
42
42
|
def convert(text, cells_num = 8)
|
43
|
-
# To output a string in Brainfuck,
|
43
|
+
# To output a string in Brainfuck, "auxiliary numbers" are written into
|
44
44
|
# certain cells. If a letter is to be output, the letter is converted into
|
45
45
|
# an ASCII value and the auxiliary number that is closest to it is searched for.
|
46
46
|
# This is then adjusted so that it corresponds to the ASCII value of the letter.
|