Skip to content

Instantly share code, notes, and snippets.

@n-ari
Created April 28, 2016 04:35
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 n-ari/26a7bf59db180cb49d43e33513c4e0d5 to your computer and use it in GitHub Desktop.
Save n-ari/26a7bf59db180cb49d43e33513c4e0d5 to your computer and use it in GitHub Desktop.
エジプトから来れませんでした
s = """
エジプトから来ました
      /\
     /┳┻\
    /━┻┳┻\
   /┻┳━┻┳┻\
  /┳━┻┳━┻┳┻\
 /━┻━━┻━━/⌒\ \
  ̄ ̄/  ____/⌒\⊃
  (  /
   \\
    ∪
"""
for i in [0...25]
beg = Math.floor(Math.random()*s.length)
end = Math.floor(Math.random()*(s.length-beg))+beg+1
if Math.floor(Math.random()*2) is 0
s = s.slice(beg,end) + s.slice(0,beg) + s.slice(end)
else
s = s.slice(0,beg) + s.slice(end) + s.slice(beg,end)
console.log(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment