/run ruby

points=0

DICE=['う','お','こ','ま','ち', 'ん']

ROLE=[

['うんち', 1000],

['うんこ', 1000],

['まんこ', 1000],

['ちんこ', 1000],

['ちんちん', 3000],

['おまんこ', 5000],

['おちんちん', 10000]

]

while points == 0

res=""

5.times do |n|

res += DICE.sample

end

ROLE.each do |r|

c, p = r

if res.sort.include?(c.sort)

points += p

puts c, p

end

end

end

puts res, points

Reply to this note

Please Login to reply.

Discussion

file0.code:20:in `block in

': undefined method `sort' for "\\u3093\\u307E\\u3053\\u3053\\u304A":String (NoMethodError)

from file0.code:18:in `each'

from file0.code:18:in `

'