Skip to content

Instantly share code, notes, and snippets.

@jadiunr
Created February 27, 2018 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadiunr/71b7312c8aed684590ddd9bd7f0bb493 to your computer and use it in GitHub Desktop.
Save jadiunr/71b7312c8aed684590ddd9bd7f0bb493 to your computer and use it in GitHub Desktop.
n=2;eval$s=%w[s=%[n=#{n<3?n+1:
1};eval$s=%w[#{$s}]*""];f=->n{
s.slice!(0,n)};if(n==1)then;6.
times{|i|puts(f[30])};20.times
{|i|puts(32.chr*15+f[15])};els
if(n==2)then;4.times{puts(f[30
])};4.times{|i|
puts(32.chr*19+
f[11])};4.times
{puts(f[30])};4
.times{|i|puts(
f[11]+32.chr*19
)};4.times{puts
(f[30])};elsif(
n==3)then;4.tim
es{puts(f[30])}
;4.times{|i|put
s(32.chr*19+f[1
1])};4.times{pu
ts(f[30])};4.ti
mes{|i|puts(32.
chr*19+f[11])};
4.times{puts(f[
30])};end;puts(
s)]*""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment