#FristPythonGame Lets Check out our new invention a game in python!!!!!!!!!!!!!

So this is the post about what i have made using python the programing language ,as you might have understand the game that I have made using python
The special thing about this is that the coding which is done is supper easy and as you might be knowing that the python is know for its supper easy syntax you would understand the code by just reading it the code will be written down also a link to download will be given if in case you can upgarde the code for more functionality you to can share this or comment it down below.
and if you are having any more ideas about some programing game in python do comment it down bellow
SO THE CODE WILL BE AS BELLOW!!!!!!!!!!!!

#this is a rolling dice game
import random
win=0
loss=0
live=6
inp=''
print('This is a rolling dice game')
print('So some rules')
print('1.There will be a win at 4,5,6')
print('2.So there will be a die when a number is less than 4')
print('3.This is a game of luck !!!!!!')
print('4.SO the results will be displayed')
print('5.Play it wisely!!!!!!!!')
print('6.You will be given six lives')
print('7.If you win lives will been given as a reward!!!!!!(only at 6)')
print('TO START PRESS(Y) to STOP PRESS(N):')
inp=str(input('>>>'))
if inp=='Y' or inp=='y':
    while live!=0:
    print('Lives remaing:'+str(live))
    num=random.randint(1,6)
        if num==1:
            print('You have losst!!!')
            print('The number was'+str(num))
            loss=loss+1
            live=live-1
        elif num==2:
            print('You have losst!!!')
            print('The number was'+str(num))
            loss=loss+1
            live=live-1
        elif num==3:
            print('You have losst!!!')
            print('The number was'+str(num))
            loss=loss+1
            live=live-1
        elif num==4:
            print('You have Won!!!')
            print('The number was'+str(num))
            win=win+1
            live=live-1
        elif num==5:
            print('You have Won!!!')
            print('The number was'+str(num))
            win=win+1
            live=live-1
        elif num==6:
            print('You have Won!!!')
            print('The number was'+str(num))
            win=win+1
            live=live+1
if win>loss:
    print('You are a champion')
elif win==loss:
    print('You are average pal')
elif win<loss:
    print('Your are a wining losser pal!!!!!!!!!!!')
elif win==0:
    print('You are losser')
else:
    print('You are a exception')



SO THE DOWNLOAD LINK FOR THE FILL WILL BE GIVEN BELLOW:
Click Here To Download

Comments