Global Feed Post Login
Replying to Avatar きりの

/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.chars.sort.join.include?(c.chars.sort.join)

points += p

puts c + "! " + p

end

end

end

puts "合計 " + points + " " + res

c3
c3db91f2... 2y ago

file0.code:23:in `+': no implicit conversion of Integer into String (TypeError)

from file0.code:23:in `block in

'

from file0.code:19:in `each'

from file0.code:19:in `

'

Reply to this note

Please Login to reply.

Discussion

No replies yet.