Skip to content

Instantly share code, notes, and snippets.

@tututen
Created August 7, 2016 04:26
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 tututen/2bb77e89ffd509da782ad22852378178 to your computer and use it in GitHub Desktop.
Save tututen/2bb77e89ffd509da782ad22852378178 to your computer and use it in GitHub Desktop.
zundoko KIYOSHI PYTHON #codejp
#!/usr/bin/env python
import random as r
s=' '*16
while True:
p=r.choice(['zun','doko'])
print(p)
s+=p
if s[-16:]=='zun'*4+'doko':
print 'KIYOSHI!'
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment