Created
August 21, 2019 17:48
-
-
Save Chirimen-Jako/1679c157f14ee5eae7e99b6596d1263e to your computer and use it in GitHub Desktop.
おっぱいそんちくびんびん♪ (Python3)
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
#!/usr/bin/python3 | |
# | |
# 令和のおっ.py | |
# | |
# 2019/08/22: initial release | |
# | |
# Ubuntu 18.04.2 LTS (Bionic Beaver) | |
# | |
# Python 3.6.8 | |
# | |
# Dedicated to shirasu | |
# https://gist.github.com/8q/a5331c6ef8a205b32125 | |
# | |
from random import sample | |
if __name__ == '__main__': | |
REAL_STR = "おっぱいそんちくびんびん" | |
OPPAI_ELEMENTS = ["おっ", "ぱい", "そん", "ちく", "びん", "びん"] | |
testStr = "" | |
count = 0 | |
while testStr != REAL_STR: | |
count += 1 | |
numList = sample(range(6), 6) | |
testStr = "".join(map(lambda n: OPPAI_ELEMENTS[n], numList)) | |
print(f"{count} {testStr}") | |
print("おめでとうございます!", end="\x20") | |
print(f"あなたは{count}回目に{REAL_STR}しました。") | |
print("end") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment