Skip to content

Instantly share code, notes, and snippets.

@Chirimen-Jako
Created August 21, 2019 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chirimen-Jako/1679c157f14ee5eae7e99b6596d1263e to your computer and use it in GitHub Desktop.
Save Chirimen-Jako/1679c157f14ee5eae7e99b6596d1263e to your computer and use it in GitHub Desktop.
おっぱいそんちくびんびん♪ (Python3)
#!/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