summaryrefslogtreecommitdiff
path: root/sample/trick2018/02-mame/remarks.markdown
diff options
context:
space:
mode:
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.