Skip to main content

Muse Behavior - Basics

Comments

98 comments

  • Ahmad Al Yasen

    قفقل

    0
  • Ahmad Al Yasen

    ق

     

    0
  • Nicolas Leal França

    jogar

    0
  • Ekonian Daniel

    hi

    0
  • Aarti rathve Rathve

    Gun game

    0
  • hammad Khan

    hi

    0
  • JONAS FERNANDES DOS SANTOS

    go

     

    0
  • Latif Ullah

    i need best game deolopment genaration

    0
  • Phoenix Franklin

    noooooooooooooooo

     

     

    0
  • ez

    0
  • CoeurPur

    Bonjour j'aimerai créer un jeu, mais je n'arrive pas à voir comment faire, quelqu'un peut m'aidé ?

    0
  • Poonam Pawale

    Iam creating a awesome game and Play or give to playing friends

    0
  • Thiago Gama

    BRASIL

    0
  • Mohammed Saad Khan

    Create a car game new 3D animation

    0
  • Mohammed Saad Khan

    Creta car game new 3D animation

    0
  • Mohammed Saad Khan

    Create a car game with 50 levels. The first level should be easy, the second level should be hard, and then the subsequent levels should be hard, you should buy a Hayabusa, you should have a big car class, and you should have all of them.

    0
  • Xub renax

    Aryan 

    0
  • Rachit Panday

    I am good

    0
  • Rachit Panday

    Nice 

    0
  • Rachit Panday

    Run game

    0
  • Tomi Mesek

    Mamut

    0
  • Kouami Junior

    Un jeux de spiderman

     

    0
  • Sheikh Ammar ahmed

    My name Ammar i'am creating game 

    0
  • Victor Manuel Pedro

    Cria um jogo de missão, com bom gráfico, personagens bem desenhadas e os materiais também bem desenhados, Objetivo do jogo é missão de um jovem 

    0
  • Dany

    А как в игре сделать кнопку чата ??

    Я не понимаю..

    0
  • Rubini Karan

    Go

    0
  • DASH

    Good!

    0
  • Asad Ali

    import random

    import time

    def play_cricket():

        print("====================================")

        print("      WELCOME TO MINI RC24!         ")

        print("====================================")

        print("Rules: 1 se 6 ke beech number chuniye.")

        print("Agar aapka aur bowler ka number same hua, toh OUT!")

        print("====================================")

        # Toss Logic

        print("\n--- TOSS TIME ---")

        user_choice = input("Heads (H) or Tails (T)? ").upper()

        toss_result = random.choice(['H', 'T'])

        

        if user_choice == toss_result:

            print(f"Toss jeeta! Aap Batting karenge.")

        else:

            print(f"Toss haare! Computer Batting karega pehle.")

            # Simulating simple logic: User bats anyway for this demo to maintain fun

            print("Lekin practice match hai, isliye pehle AAP Batting karein!")

        # Batting Innings

        print("\n--- AAPKI BATTING SHURU ---")

        runs = 0

        balls = 0

        total_overs_balls = 6 # Super Over (6 balls)

        is_out = False

        while balls < total_overs_balls and not is_out:

            try:

                user_run = int(input(f"Ball {balls+1}: Shot maarein (1-6): "))

                

                if user_run < 1 or user_run > 6:

                    print("Invalid shot! 1 se 6 ke beech number dalein.")

                    continue

                bowler_ball = random.randint(1, 6)

                print(f"Bowler ne {bowler_ball} fenka...")

                time.sleep(1) # Thoda suspense

                if user_run == bowler_ball:

                    print(f"!!! OUT !!! (Aapne {user_run} mara, Bowler ne wahi pakda)")

                    is_out = True

                else:

                    runs += user_run

                    print(f"Badhiya Shot! {user_run} runs mile.")

                

                balls += 1

            except ValueError:

                print("Kripya number likhein!")

        target = runs + 1

        print(f"\nInnings Khatam! Aapka Score: {runs}")

        print(f"Computer ko jeetne ke liye {target} runs chahiye.")

        # Bowling Innings (Computer Batting)

        print("\n--- COMPUTER KI BATTING ---")

        comp_runs = 0

        comp_balls = 0

        comp_out = False

        while comp_balls < total_overs_balls and not comp_out and comp_runs < target:

            user_bowl = int(input(f"Ball {comp_balls+1}: Ball fenkein (1-6): "))

            comp_shot = random.randint(1, 6)

            

            print(f"Computer ne {comp_shot} mara...")

            

            if user_bowl == comp_shot:

                print("!!! WICKET !!! Aapne computer ko out kar diya!")

                comp_out = True

            else:

                comp_runs += comp_shot

                print(f"Computer ko {comp_shot} runs mile.")

            

            comp_balls += 1

            print(f"Score: {comp_runs}/{1 if comp_out else 0} | Target: {target}")

        # Result

        print("\n====================================")

        if comp_runs >= target:

            print("COMPUTER JEET GAYA! Better luck next time.")

        elif comp_runs == runs:

            print("MATCH TIED! Super over time?")

        else:

            print("BADHAI HO! AAP JEET GAYE! 🏆")

        print("====================================")

    # Game start karna

    if __name__ == "__main__":

        play_cricket()

    0
  • Abu Sufiyan

    Good

    0
  • Dulce montiel

    go

    0

Please sign in to leave a comment.

Powered by Zendesk