#include #include using namespace std; class Door { private: string dialColor; public: // Constructor Door() { dialColor = "green"; // Default setting } // Change the dial color void turnDial(const string& newColor) { dialColor = newColor; cout << "\nโœจ The dial clicks into place: [" << dialColor << "]" << endl; } // Open the door to the corresponding destination void openDoor() const { cout << "\nYou open the door..." << endl; if (dialColor == "green") { cout << "๐ŸŒฟ Market Chipping โ€” a peaceful town of cobblestone streets and hat shops." << endl; } else if (dialColor == "blue") { cout << "๐ŸŒŠ Seaside Town โ€” ocean air and gulls fill the sky as waves roll in." << endl; } else if (dialColor == "red") { cout << "๐Ÿ”ฅ The Wastelands โ€” scorched earth and the faint shadow of the Witch of the Waste." << endl; } else if (dialColor == "black") { cout << "๐ŸŒŒ Howlโ€™s Secret Realm โ€” a starry void between worlds where time stands still." << endl; } else { cout << "โš™๏ธ The door hums quietly but doesnโ€™t seem to open anywhere recognizable." << endl; } } // Get the current dial color string getDialColor() const { return dialColor; } }; int main() { Door magicDoor; string input; bool running = true; cout << "-------------------------------------------\n"; cout << "๐Ÿ”ฎ HOWL'S MOVING CASTLE: Magical Door System\n"; cout << "-------------------------------------------\n"; cout << "Available dial colors:\n"; cout << " green - Market Chipping\n"; cout << " blue - Seaside Town\n"; cout << " red - Wastelands\n"; cout << " black - Howl's Secret Realm\n"; cout << "-------------------------------------------\n"; while (running) { cout << "\nCurrent dial: [" << magicDoor.getDialColor() << "]" << endl; cout << "Commands: 'turn', 'open', 'exit'\n"; cout << "> "; cin >> input; if (input == "turn") { string color; cout << "Enter new dial color: "; cin >> color; magicDoor.turnDial(color); } else if (input == "open") { magicDoor.openDoor(); } else if (input == "exit") { running = false; cout << "\n๐Ÿšช The door closes. The castle continues to move through the mist...\n"; } else { cout << "Unknown command. Try 'turn', 'open', or 'exit'.\n"; } } return 0; }