Code:
#include <iostream>
using namespace std;
int main(){
int monster[3]={0,0,1};
char dir;
int placement;
//end veriables
placement =0;
do{
if (placement == 0){
cout<<"you are in the starting location...move!"<<endl<<"north or south? "<<endl;
cin>>dir;
if (dir == 'n'){
placement = 1;
}
else if (dir == 's'){
placement = 2;
}
}
if (placement == 1){
cout<<"you are in the place north of the start"<<endl<<"you can go south"<<endl;
cin>>dir;
if (dir == 's'){
placement = 0;
}
}
if (placement == 2){
cout<<"you are south of the start"<<endl<<"you can go north"<<endl;
cin>>dir;
if (dir == 'n'){
placement = 0;
}
}
}while (dir > -1);
cout<<monster[0]<<monster[1]<<monster[2]<<endl;
cin>>a;
cout<<monster[a]<<endl;
}


