class SensoryGame: def __init__(self): self.location = "Restaurant" self.is_playing = True def play(self): print("Welcome to the Sensory City Journey!") while self.is_playing: if self.location == "Restaurant": print("\n[Location: Restaurant]") print("The family is at the 'STOP' sign. They are full of energy!") self.location = "Cafe" elif self.location == "Cafe": print("\n[Location: Little Cafe]") print("The family is having a great time, drinking coffee and laughing.") self.location = "Mall" elif self.location == "Mall": print("\n[Location: The Mall]") print("The family is walking through the bright, fun mall.") self.location = "Sign-In" elif self.location == "Sign-In": print("\n[Location: Hotel Lobby]") print("The staff member assigns the room number to the family.") self.location = "Sensory Room" elif self.location == "Sensory Room": print("\n[Location: Sensory Suite]") print("The family walks in—they are amazed by how cool it looks!") self.is_playing = False # Start the game game = SensoryGame() game.play()