Cho mình hỏi là vòng lặp while True kia nghĩa là gì, có phải là vòng lặp vô hạn ko, hay là gì và dùng như thế nào ạ? với cái biến bear_moved = False kia là sao ạ?
cảm ơn mọi người
def bear_room():
print "There is a bear here."
print "The bear has a bunch of honey."
print "The fat bear is in front of another door."
print "How are you going to move the bear?"
bear_moved = False
while True:
choice = raw_input("> ")
if choice == "take honey":
dead("The bear looks at you them slaps your face off.")
elif choice == "taunt bear" and not bear_moved:
print "The bear has moved from the door. You can go through it now."
bear_moved = True
elif choice == "taunt bear" and bear_moved:
dead("The bear gets pissed off and chews your leg off.")
elif choice == "open door" and bear_moved:
gold_room()
else:
print "I got no idea what that means."
ps: e có gg r mà ko hiểu j mới vô đây hỏi các bác đừng ném gạch tội nghiệp e T.T