☆ 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"
0 yorum:
Yorum Gönder