game
coin=5
exp=5
level=0
blood_e=20
blood_f=100
#xia mian shi da jia
print("oh,here comes the frog")
choice=float(input("1,fight 2,chat 3,escape"))
if choice==1:
? ?print("player vs frog")
? ?i=1
? ?for i in range(1,3,1):
? ? ? ?while blood_e>0 and blood_f>0:
? ? ? ? ? ?fight=float(input("1,shanggouquan 2,saotangtui 3,beishuai"))
? ? ? ? ? ?if fight==1:
? ? ? ? ? ? ? ?blood_e=blood_e-1
? ? ? ? ? ? ? ?print("player used shanggouquan!")
? ? ? ? ? ? ? ?print("frog used shouting!")
? ? ? ? ? ? ? ?blood_f=blood_f-10
? ? ? ? ? ? ? ?print("you lost 10 blood")
? ? ? ? ? ?if fight==2:
? ? ? ? ? ? ? ?blood_e=blood_e-2
? ? ? ? ? ? ? ?print("player used saotangtui!")
? ? ? ? ? ? ? ?print("frog used shouting!")
? ? ? ? ? ? ? ?blood_f=blood_f-10
? ? ? ? ? ? ? ?print("you lost 10 blood")
? ? ? ? ? ?if fight==3:
? ? ? ? ? ? ? ?blood_e=blood_e-3
? ? ? ? ? ? ? ?print("player used beishuai!")
? ? ? ? ? ? ? ?print("frog used shouting!")
? ? ? ? ? ? ? ?blood_f=blood_f-10
? ? ? ? ? ? ? ?print("you lost 10 blood")
? ? ? ?while blood_e<=0:
? ? ? ? ? ?print("player wins")
? ? ? ? ? ?coin=coin+1
? ? ? ? ? ?exp=exp+1
? ? ? ?while blood_f<=0:
? ? ? ? ? ?print("frog wins")
? ? ? ?i=i+1
? ? ? ?
if choice==2:
? ?print("but forg cant understand,it hitted you")
? ?blood_f=blood_f-10
? ?print("player vs frog")
? ?while blood_e>0 and blood_f>0:
? ? ? ?fight=float(input("1,shanggouquan 2,saotangtui 3,beishuai"))
? ? ? ?if fight==1:
? ? ? ? ? ?blood_e=blood_e-1
? ? ? ? ? ?print("player used shanggouquan!")
? ? ? ? ? ?print("frog used shouting!")
? ? ? ? ? ?blood_f=blood_f-10
? ? ? ? ? ?print("you lost 10 blood")
? ? ? ?if fight==2:
? ? ? ? ? ?blood_e=blood_e-2
? ? ? ? ? ?print("player used saotangtui!")
? ? ? ? ? ?print("frog used shouting!")
? ? ? ? ? ?blood_f=blood_f-10
? ? ? ? ? ?print("you lost 10 blood")
? ? ? ?if fight==3:
? ? ? ? ? ?blood_e=blood_e-3
? ? ? ? ? ?print("player used beishuai!")
? ? ? ? ? ?print("frog used shouting!")
? ? ? ? ? ?blood_f=blood_f-10
? ? ? ? ? ?print("you lost 10 blood")
? ?while blood_e<=0:
? ? ? ?print("player wins")
? ? ? ?coin=coin+1
? ? ? ?exp=exp+1
? ? ? ?i=i+1
? ?while blood_f<=0:
? ? ? ?print("frog wins")
? ? ? ?i=i+1
if choice==3:
? ?print("wo hai mei xiang hao")
? ?i=i+1
game的評論 (共 條)
