#include #include #include "robot.h" #include "console.h" int main(int argc, char **argv[]) { labConnect ( "150.140.189.75",12345); char labyrinth [14]; printf("labyrinth="); scanf("%s",labyrinth); labLoadLabyrinth ("labyrinth"); labInsertRobot ("magas"); labSetMode (0); robotTurnRight (); int i=1; while (i<5){ i++; robotStep(8); } robotTurnLeft (); robotStep(8); robotTurnLeft (); robotStep(8); robotTurnRight (); robotStep(8); robotTurnLeft (); robotStep(8); robotTurnRight (); robotStep(8); robotTurnLeft (); robotStep(8); robotTurnRight (); robotStep(8); robotTurnLeft (); robotStep(8); robotTurnRight (); robotStep(8); robotTurnRight (); int j=1; while (j<=6){ j++; robotStep(8); } system("PAUSE"); return 0; }