summaryrefslogtreecommitdiff
path: root/sample/trick2022/03-mame/entry.rb
blob: f24595dfa96467b414eb56642d1b3b28b6d7fcb2 (plain)
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
2022;"#

.chars} {puts'TRICK+2022'
        \  {         ;
#';$><< b
   ?!
};#{s=' ' #           0
! s[0]? (   b=$<.read  ;'
}            ub(      ,''}
';a=            ''<<32
b.lines      {puts( ?.. *(
b.size)   .gsub(/./) {
b.sub!(        /^#$`\K(\S)
             /x,a)?$1:a }
               .rstrip)}):
      ( [ 12,1,12,11].
cycle { | i | t = ( s *

10<<
10)*
10+            %(\e[A)*
10
10.             times{t[i*
    _1  ] =  'TRICK+2022'[
    _1  ]     };$><<t
            sleep 1})
               }"