aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-07-31 00:18:29 +0900
committernsfisis <nsfisis@gmail.com>2023-07-31 00:18:29 +0900
commit2ff5fde8580295263547b8e758626b7e20e2ff98 (patch)
tree1d7209ba3d37445e5ca9b0bf96ef1c67d0be2070
parent66f34dd37df679664e4f2f1baaba4bc49041cd83 (diff)
downloadnsfisis-2ff5fde8580295263547b8e758626b7e20e2ff98.tar.gz
nsfisis-2ff5fde8580295263547b8e758626b7e20e2ff98.tar.zst
nsfisis-2ff5fde8580295263547b8e758626b7e20e2ff98.zip
Update
-rw-r--r--README.md25
1 files changed, 13 insertions, 12 deletions
diff --git a/README.md b/README.md
index 784b4f9..122710a 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,17 @@
```ruby
-s = '
-+++++ +++++
-[
- > +++++ +++++ + > +++++ +++++ +
- > +++++ +++++ > +++++ +++++
- <<<< -
+MyName = "nsfisis"
+
+ss = [
+ "GHlBH", "2,a0KLG", "Rc1_g",
+ "![oLhVE", "2,a0KLG",
+ "![oLhVE", "2,a0KLG",
]
-> . > +++++ . >> ++ . < +++++ . < . > . < .
-'
-m=[c=p=0,0,0,0,0];(k=s[c])=='>'?p+=1:k=='<'?p-=1:
-k=='+'?m[p]+=1:k=='-'?m[p]-=1:k=='.'?putc(m[p]):
-k=='['?(0until s[c+=1]==']'if m[p]==0):
-k==']'?(0until s[c-=1]=='['if m[p]!=0):0while s[c+=1]
+puts ss
+ .map{|s| s
+ .each_char
+ .map{(_1.ord + 12323).chr(Encoding::UTF_8)}
+ .join}
+ .zip(MyName.each_char)
+ .map{"#{_2} | #{_1}"}
```