تحدي ( تتطوير لعبة جزيرة الالغاز)

السلام عليكم ورحمة الله وبركاته
اليوم 23 / رمضان عندنا تحدي ينتهي يوم 27 / رمضان
التحدي عباره عن تتطوير مشروع الوحده الثالثه في python
الفئه المستهدفه = المبتدئين و المتوسطين
هذه الصور تعرض التحدي .






pin = 5684
ملحوظه : اذا ادخل المستخدم لونا او رقم غير اللي في الاختيارا ت اطبع Invalid choice
سيتم تحميل حل هذا التحدي يوم 27 / رمضان ليلا
ارجوا ان تستمتعوا بحله و ان شاء الله سلعمل على اختراع مشاريع اخر سهله للمبتدئين ليتدربوا على ما اخذو سابقا

4 إعجابات

هذا هو الحل

[quote="Asil_Ahmed1, post:2, topic:6165, full:true"]
هذا هو الحل 
print("""
░░█░░░░█░░░░░█░░░░█░░█░░░░░█
░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█░░░░░░░░░███████░░░░░░░░░█
░░░░░░░░░██░░░░░░░██░░░░░░░░
░█░░░░░░░██░░█░█░░██░░░░░░░█░
░░░░░░░░░██░░░█░░░██░░░░░░░░
░█░░███████░░░░░░░███████░░█
░░░░█░░░░░░░░░░░░░░░░░░░█░░░
░█░░█████████████████████░░█░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░█░░█░█░░█░█░█░░█░░█░░░█░░█░█ """)
print("")
print("")
print("welcome to my island")
# door choice
print("there are 2 doors in front of you 🚪 a red door and 🚪 a blue door")
color=input("which door do you want to open: ")
if color.lower() == "red":
  print("Great! now you entered a room \n you found three boxes 🎁white,🎁black,🎁green and a door")
  box_choice=input("which box do you open: ").lower()
  if box_choice.lower()=="white":
     print("Oops! you chose a box filled with snakes 🐍🐍🐍\nGame over!")
  elif box_choice.lower()=="black":
    print("Oops you opened a box filled with spiders 🕸️ 🕸️ 🕸️\nGame over!")
  elif box_choice.lower()== "green":
    print("congratulations , You moved one step to the treasure")
    key_choice = input("Now you found 3 keys 🗝️ yellow , 🗝️ brown , 🗝️ white \n which key will you choose : ")
    if key_choice.lower() == "yellow":
      print("Oops it had poison texture on , You died Good luck next time .")
    elif key_choice.lower() == "white":
      print("Oops , it seems it is not the right key.")
    elif key_choice.lower() == "brown" :
      print("congratulations you found the right key")
      print("Now you Entered a room and there is a door that needs a pin to be opened \n and there is some equations you have to solve so you can find the pin and they are in order so equation number 1 is for number 1 in the pin")
      print("1. 8 x (9 - 4) - 35 = ")
      print("2. 4 x 6 + 3 - 21 = ")
      print("3. (12 x 12) / 18 = ")
      print("4. [(11 x 12) - 100] / 8 = ")
      pin = int(input("Enter the pin : "))
      if pin == 5684 :
        print("Congratulations , you opened the door and found the Treasure 💰💰💰")
      else :
        print("Wrong Pin . Good luck next time")
    else :
      print("Invalid choice")
  else:
    print("Invalid choice")
#end of door choice
if color.lower() == "blue" :
  print("Oops! you chose the crocodile door. \nGame over!🐊 🐊 🐊")
else:
  print("invalid choice")
[/quote]
ارجو ان تكونوا قد وفقتوا للحل وان شاء الله سيكونهناك تحديات اصعب
3 إعجابات