Skip to content

Instantly share code, notes, and snippets.

@danimal141
Created March 16, 2016 08:08
Show Gist options
  • Select an option

  • Save danimal141/5534631868391c8a77a9 to your computer and use it in GitHub Desktop.

Select an option

Save danimal141/5534631868391c8a77a9 to your computer and use it in GitHub Desktop.
z, d = zd = ['ズン', 'ドコ']
loop.lazy.map { zd.sample }.each_cons(5) do |output|
p output.join('・')
break p('キ・ヨ・シ!') if output == [z, z, z, z, d]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment