Last active
August 24, 2019 03:33
-
-
Save Chirimen-Jako/8f8d48ae76d64f741d59bb4faa2b2cbc to your computer and use it in GitHub Desktop.
おっぱいそんちくびんびん♪ (Processing)
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
/* | |
oppai.pde | |
2019/07/06: initial release | |
Microsoft Windows 10 Version 1903 (OS build 18362.239) | |
Processing 3.5.3 (Java 8 Update 211) | |
Dedicated to shirasu | |
https://gist.github.com/8q/a5331c6ef8a205b32125 | |
*/ | |
String realstr = "おっぱいそんちくびんびん"; | |
String[] oppaiElements = {"おっ", "ぱい", "そん", "ちく", "びん", "びん"}; | |
int count = 0; | |
while (true) { | |
count++; | |
IntList numList = new IntList(0, 1, 2, 3, 4, 5); | |
numList.shuffle(); | |
String teststr = ""; | |
for (int index : numList) { | |
teststr += oppaiElements[index]; | |
} | |
println(count + " " + teststr); | |
if (teststr.equals(realstr)) { | |
print("おめでとうございます!" + " "); | |
println("あなたは" + count + "回目に" + realstr + "しました。"); | |
break; | |
} | |
} | |
println("end"); | |
exit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment