Water Gun Snake game with python

 # Game Rules

# First of all there is three things 
# 1: Snake
# 2: Water
# 3: Gun
# In this game we have to player first is rebort and second is user
# so if the player1 enter the snake and user chose the water then the
#  snake drink the water and the user is lost the game same rule from the player1
# if the player1 chooze the gun and user chose the snake so snake is killed
#  with the gun and the player1 win the game
# if the player chose the gun and you chose the water then the gun is fall
#  in the water and you win


def winner(chuser):
    if ch == str("Gun"):
        if f"{ch}{user}"==str("GunW"):
            print(f"""Hurruh, player1 chose the Gun and Fall in you 
            waterin this way you win the Game... \n""")             
        if f"{ch}{user}"==str("GunS"):
            print(f"""Alas,Player1 chose the Gun In this way he killed
             you snake SO you loss the Game... \n"""
        if f"{ch}{user}"==str("GunG"):
            print(f"""Opps, player1 chose the Gun In this way the Game
             is Drawn... \n""")
    elif ch == str("Snake"):
        if f"{ch}{user}"==str("SnakeG"):
            print(f"""Hurrah, Player1 chose the Snake and killed by your
             Gun in this way you win the Game... \n""")
        if f"{ch}{user}"==str("SnakeW"):
            print(f"""Alas, Player1 chose the Snake and drink all your water
             in this way you loss the Game... \n""")
        if f"{ch}{user}"==str("SnakeS"):
            print(f"""Opps, Player1 chose the Snake and both snake are still
             fighting in this way match has been Drawn...\n""")
    elif ch == str("Water"):
        if f"{ch}{user}"==str("WaterS"):
            print(f"""Hurrah, Player1 chose the Water and your snake drink 
            all water in this way you win the game...\n""")
        if f"{ch}{user}"==str("WaterG"):
            print(f"""Alas, Player1 chose the Water and your gun is fall in
             water in this way you lose the Game...\n""")
        if f"{ch}{user}"==str("WaterW"):
            print(f"Opps, Player1 chose the Water both water is Mix in this
             way Game Drawn...\n""")


game_ch=["Gun","Water","Snake"]
import random
= 0
print("you have total 3 chance".title())
while i <= 2:
    print("Player1 Make his chosen.")
    import random
    ch=random.choice(game_ch)
    user = str(input("""Its your time:
S for Snake.
G for Gun.
W for water.\n"""))
    winner(ch, user)
    if i >2:
        break
    print(f"{2-i} Times left")
    i = i+1

Comments