summaryrefslogtreecommitdiff
path: root/sample/trick2018/02-mame/remarks.markdown
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-21 13:07:50 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-21 13:07:50 +0000
commite613cdd53d16327dccf8237f8d5b672804a69eca (patch)
tree4a2449396c98b60f3ed25378ef47e67c8b8c8e4a /sample/trick2018/02-mame/remarks.markdown
parent8d0f5f1bfa7bf9cd257f381fd6cc80b99a2edcd7 (diff)
sample/trick2018/: adds the top-five entries of TRICK 2018
See https://github.com/tric/trick2018 for TRICK 2018. Fixes #14930. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/trick2018/02-mame/remarks.markdown')
-rw-r--r--sample/trick2018/02-mame/remarks.markdown16
1 files changed, 16 insertions, 0 deletions
diff --git a/sample/trick2018/02-mame/remarks.markdown b/sample/trick2018/02-mame/remarks.markdown
new file mode 100644
index 0000000000..88b32c205a
--- /dev/null
+++ b/sample/trick2018/02-mame/remarks.markdown
@@ -0,0 +1,16 @@
+This program quines with animation.
+
+```
+$ ruby entry.rb
+```
+
+Of course, the output is executable.
+
+```
+$ ruby entry.rb > output
+$ ruby output
+```
+
+Note, we don't cheat. This program uses escape sequences just for moving the cursor. It doesn't use attribution change nor overwrite to hide any code.
+
+The program is crafted so that it works in two ways; it works as a normal program text, and, it also works when it is rearranged in a spiral order. Some parts of the code are actually overlapped.