Eğlenceye Davetlisiniz...

Python Taş Kağıt Makas Oyunu [PYTHON 2.7]


☆ Kodlar : https://hastebin.com/fejomuzeso.py

☆ Kodlar ( Alternatif ) :
Kod:
#!/usr/bin/env python 
# -*-coding:iso-8859-9 -*- 

import random 

print "1-TAS" 
print "2-KAGIT" 
print "3-MAKAS" 
sen = 0 
kt = 0 
while True: 
    a=random.randint(4, 6) 
    try: 
        b=int(raw_input("Secin  :")) 
    except ValueError: 
        print "Lutfen Sayi Giriniz" 
        continue 
    if b==1 and a==4: 
        print "Tas ve Tas Berabere" 
    if b==1 and a==5: 
        print "Tas ve Kagit" 
        kt=kt+1 
        print "Sen=", sen 
        print "Rakip=", kt 
    if b==1 and a==6: 
        print "Tas ve Makas" 
        sen=sen+1 
        print "Sen=", sen 
        print "Rakip=", kt 
    if b==2 and a==4: 
        print "Kagit ve Tas" 
        sen=sen+1 
        print "Sen=", sen 
        print "Rakip=", kt 
    if b==2 and a==5: 
        print "Kagit ve Kagit Berabere" 
    if b==2 and a==6: 
        print "Kagit ve Makas" 
        kt=kt+1 
        print "Sen=", sen 
        print "Rakip=", kt 
    if b==3 and a==4: 
        print "Makas ve Tas" 
        kt=kt+1 
        print "Sen=", sen 
        print "Rakip=", kt 
    if b==3 and a==5: 
        print "Makas ve Kagit" 
        sen=sen+1 
        print "Sen=", sen 
        print "Rakip=", kt 
    if b==3 and a==6: 
        print "Makas ve Makas Berabere" 
    if b>3: 
        print "Gecersiz Sayi" 
        print "1-TAS" 
        print "2-KAGIT" 
        print "3-MAKAS"
☆ Oyunun İndirme Linki : TIKLA
     
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 yorum:

Yorum Gönder