#include #include using namespace std; int main() { // Is the room locked bool locked=true; // Does the player have the key. bool key=false; // Player's command string command; do { cout << "Enter in a command: "; getline(cin,command); //Convert to lowercase. for(int i=0; i