#include using namespace std; int main () { int map[10]; int i; // Player location int PL=5; // Clean array i=0; while(i<10) {map[i]=0; i++;} // Set player location map[PL]=1; while(true) { i=0; while(i<10) {cout <> KI; if(KI=='D' || KI=='d') {++PL;} else if(KI=='A' || KI=='a') {--PL;} else {/*PL*/} map[PL]=1; } cin >> i; }