صنعة لعبة الحظ
# صورة شعار اللعبة
print("""
──────────────────────────────
──────▄█───▄███████▄──▐█▄─────
────────▀─██─█████─██─▀───────
──────────██──███──██─────────
────────▄──▀███████▀──▄───────
──────▀█────▀▀─▀─▀▀────█▀─────
──────────────────────────────
""")
import time
# اولا رسالة ترحيب
print('Welcome to my island')
time.sleep(2)
#عمل متغير لي فحص ماذا سيختار اللاعب
Choice_luck_doors = input("\nThere are two doors in front of you. 🔴🚪 a red door 🔵🚪 a blue door \nWhich door do you want open? ")
import time
#استختدام if و else لتشيك ماذا اختار الاعب
if Choice_luck_doors.upper() == "RED":
import time
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nGreat now you entered a Room.')
time.sleep(1)
Choice_luck_Box = input ('\nYou found three Boxes: 🎁White, 🎁black, 🎁green \nWhich box do you open? ')
time.sleep(1)
if Choice_luck_Box.upper() == 'WHITE':
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nSorry, You opened a box full of snakes.')
time.sleep(1)
print('Game over🐍🐍🐍🐍🐍')
elif Choice_luck_Box.lower() == 'black':
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nSorry, You opened a box full of spiders.')
time.sleep(1)
print('Game over 🕷️ 🕷️ 🕷️ 🕷️ 🕸️ 🕷️ 🕷️ 🕷️ 🕷️ 🕸️')
elif Choice_luck_Box.lower() == "green" :
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nWell done, You found the treasure 💰💰💰💰💰💸.')
time.sleep(1)
import time
Luck_Choice_Path = input("""\nYou opened the green box and were taken to the world of monsters💀💀👹👹👹👹👹💀👻☠️. The world of 💀💀👹👹👹👹👹💀👻☠️ monsters is the most dangerous place, and you can only survive in one way. There are only three ways🛣️ and one of these methods You lead to survival and the rest of these roads have monsters👹👹👹💀👻☠️ inside them that cannot escape. The first road is red🔴 🛣️, the second road is green🟢 🛣️, and the third road is blue🔵 🛣️, \n\nWhich road will you choose? """)
if Luck_Choice_Path.upper() == "RED" :
time.sleep(1)
print('\nChecking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nSorry You chose a path where the lion is a demon👹👹👹👹')
time.sleep(1)
print('Game Over')
elif Luck_Choice_Path.lower() == 'green' :
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nWell done, You found the treasure bigger 💰💰💰💰💰💸💰💰💰💰💸💸💸💰💰💰💰💵💴💶.')
time.sleep(1)
print('Game Over')
elif Luck_Choice_Path.lower() == 'blue' :
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('\nSorry, You entered a road that has the King of spectra👻👻👻👻👻.')
time.sleep(1)
print('Game Over')
else:
time.sleep(1)
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print(f'You wrote {Luck_Choice_Path} , it is not on my list. Retry')
else:
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print(f'You wrote {Choice_luck_Box}, and this is off our list in Game, please try again')
elif Choice_luck_doors.upper() == "BLUE":
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print('Sorry, You opened a door full of crocodiles.')
time.sleep(1)
print('Game over🐊🐸🐸🐊🐸🐸')
else:
print('Checking', end='\r')
time.sleep(1)
print('Verified')
time.sleep(1)
print(f'You wrote {Choice_luck_doors} , it is not on my list. Retry')
`