41
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

今日も1日がんばるぞい!

Last updated at Posted at 2014-09-20

スクリーンショット 2014-09-21 4.18.16.png

# -*- encoding: utf-8 -*-
dic = [["今日","ぞい"],["も"],["1","ぞい"],["日","ぞい"],["がん","ぞい"],["ばる","ぞい"],["ぞい!"]]
count = 0

loop do
    arr = dic.map do |arr|
        arr.sample
    end
    puts arr.join
    count += 1
    break if arr.join == "今日も1日がんばるぞい!"
end

puts "? がんばるまで #{count} zoiでした?"

###がんばる

zoi.png

41
37
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
41
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?