from random import shuffle points = 0points_per_turn = 100lives = 3rooms = [("В комнате дракон :(", -1), ("В комнате живая вода :)", 1), ("Комната пуста :|", 0)]n = len(rooms) while lives > 0: print("Жизней: ", lives, ", очков: ", points, sep = "") shuffle(rooms) print("Выбирайте любую из дверей, введите число от 1 до", n, end=" ") choice = int(input()) - 1 points += points_per_turn print(rooms[choice][0]) lives += rooms[choice][1] print("Коварный дракон лишил вас последней жизни, но тем не менее у вас осталось", points, "очков.")