From d27e1a789e5df087b4b2e9fe0fc603b6b820a42d Mon Sep 17 00:00:00 2001 From: khushhalkhan01 Date: Sat, 19 Apr 2025 08:15:03 +0530 Subject: [PATCH] Create Fight games This is the best fight games Funny dialogue between fighters Who's win say to looser "heera bete" --- Fight games | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Fight games diff --git a/Fight games b/Fight games new file mode 100644 index 000000000..0739d9508 --- /dev/null +++ b/Fight games @@ -0,0 +1,82 @@ +import random +import time +import os + +# Dramatic print with typing effect +def dramatic_print(text, delay=0.05): + for char in text: + print(char, end='', flush=True) + time.sleep(delay) + print() + +# Fake sound effect using text +def sound_effect(effect_name): + sounds = { + "punch": "šŸ’„ *Dhishoom!*", + "kick": "🦵 *Thakkk!*", + "slap": "šŸ‘‹ *Chattak!*", + "win": "✨ *Victory Fanfare* ✨", + "ko": "ā˜ ļø *KNOCKOUT!* ā˜ ļø", + } + print(sounds.get(effect_name, "⚔ *Boom!*")) + +# Intro Scene +os.system('cls' if os.name == 'nt' else 'clear') +dramatic_print("šŸŽ¬ Welcome to...", 0.1) +dramatic_print("šŸ”„šŸ”„ Akhada-e-Fateh šŸ”„šŸ”„", 0.08) +time.sleep(1) +dramatic_print("āš”ļø Aaj ke fighters: Player 1 vs Player 2 āš”ļø", 0.06) +dramatic_print("Taaliyon ki goonj ke beech... dangal shuru hota hai!", 0.07) +print("\n" + "="*40) + +player1_health = 100 +player2_health = 100 +moves = ["Punch", "Kick", "Slap", "Elbow", "Flying Knee", "Headbutt"] +round_no = 1 + +while player1_health > 0 and player2_health > 0: + print(f"\n--- ROUND {round_no} ---") + time.sleep(1) + + move1 = random.choice(moves) + move2 = random.choice(moves) + + damage1 = random.randint(10, 30) + damage2 = random.randint(10, 30) + + dramatic_print(f"Player 1 ne maara {move1}!") + sound_effect("punch") + print(f"Player 2 ko laga {damage1} ka jhatka!") + + dramatic_print(f"Player 2 ne diya {move2} ka jawab!") + sound_effect("kick") + print(f"Player 1 ka health ghat gaya {damage2} se!") + + player2_health -= damage1 + player1_health -= damage2 + + print(f"\nā¤ļø Player 1 Health: {max(player1_health, 0)}") + print(f"ā¤ļø Player 2 Health: {max(player2_health, 0)}") + + round_no += 1 + time.sleep(2) + +# End Scene +dramatic_print("\nšŸ Final Result šŸ", 0.08) +time.sleep(1.5) + +if player1_health > player2_health: + sound_effect("win") + dramatic_print("Player 1 ne jeet ka jhanda gaad diya!", 0.06) + dramatic_print("Player 2... ", 0.5) + sound_effect("ko") + dramatic_print("Heera bete... tumse na ho paya.", 0.1) +elif player2_health > player1_health: + sound_effect("win") + dramatic_print("Player 2 ne maar diya dhobi pachhaad!", 0.06) + dramatic_print("Player 1... ", 0.5) + sound_effect("ko") + dramatic_print("Heera bete... better luck next time.", 0.1) +else: + dramatic_print("Dono lade shaan se... aur gire ek saath!", 0.06) + dramatic_print("Heera bete... dono hi gaye!", 0.1)