This file contains hidden or 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
from random import randint as ri | |
def lagi(): | |
print('main lagi ?\njawab Y untuk ya \n') | |
main_lagi = input("\t : ") | |
if main_lagi.lower() == 'y': | |
return main() | |
else: | |
print('\nTERIMA KASIH') | |
pass |
This file contains hidden or 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
from random import choice as rc | |
opsi = {'q':'batu','w':'gunting','e':'kertas'} | |
kalah = [['batu','kertas'],['kertas','gunting'],['gunting','batu']] | |
menang = [['kertas','batu'],['gunting','kertas'],['batu','gunting']] | |
imbang = [['batu','batu'],['gunting','gunting'],['kertas','kertas']] | |
def lagi(): | |
print('main lagi ?\njawab Y untuk ya \n') |