Skip to content

Instantly share code, notes, and snippets.

@keisukeYamagishi
Created August 10, 2022 04:32
Show Gist options
  • Save keisukeYamagishi/cc31edf3d3c0fa73eca513d9fdc708e8 to your computer and use it in GitHub Desktop.
Save keisukeYamagishi/cc31edf3d3c0fa73eca513d9fdc708e8 to your computer and use it in GitHub Desktop.
a=['ボ','ン','ボ','ン','ジョ','ヴィ']
b=0
str=''
cou=0
loop{
c=rand(6)+1
str=a[c]
print str
cou+=1
if 'ボ'===str && b==0 then
b+=1
elsif 'ン'===str && b==1 then
b+=1
elsif 'ボ'===str && b==2 then
b+=1
elsif 'ン'===str && b==3 then
b+=1
elsif 'ジョ'===str && b==4 then
b+=1
elsif 'ヴィ'===str && b==5 then
puts '','',''
print 'Bon jo vi count :',cou
puts '',''
puts '_人人人人人人人人人人人人人人_'
puts '> You Give Love a Bad Name _<'
puts ' Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y'
puts ''
puts ''
break
else
b=0
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment