ì½”드 ¶
~ruby
def my_dice
a = gets.to_i % 10
b = (rand * 10 + 1).to_i
if a == b then
puts "비겼네요"
else if a> b then
puts "내가 ì�´겼ì�Œ"
else puts "쟤가 ì�´김"
end
end
puts a
puts b
end
~ruby
def my_dice
a = gets.to_i % 10
b = (rand * 10 + 1).to_i
if a == b then
puts "비겼네요"
else if a> b then
puts "내가 ì�´겼ì�Œ"
else puts "쟤가 ì�´김"
end
end
puts a
puts b
end