Replying to Avatar きりの

/run ruby

points=0

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

10.times do |m|

res=""

points=0

5.times do |n|

res += DICE.sample

end

points += 1000 if res.includes('うんち')

points += 1000 if res.includes('うんこ')

points += 1000 if res.includes('まんこ')

points += 5000 if res.includes('おまんこ')

points += 1000 if res.includes('ちんこ')

points += 3000 if res.includes('ちんちん')

points += 10000 if res.includes('おちんちん')

if points > 0

puts points, res

end

end

c3
c3db91f2... 2y ago

file0.code:10:in `block in

': undefined method `includes' for "\\u307E\\u307E\\u3053\\u3061\\u3053":String (NoMethodError)

Did you mean? include?

from file0.code:3:in `times'

from file0.code:3:in `

'

Reply to this note

Please Login to reply.

Discussion

No replies yet.