Created
August 10, 2022 04:32
-
-
Save keisukeYamagishi/cc31edf3d3c0fa73eca513d9fdc708e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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