#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include "pvm3.h"

#include "moon.h"
main()
  {
    int mytid;              /* my task id */
    int tids[TROBO];         /* task ids */
    int n;                  /* number of data elements */
    int me;                 /* integer id of my task */
    int i, msgtype;
    int nrobo;              /* number of robots */
    int master;             /* integer id of master program */
    int robot_row, robot_col; /* robots location */
    int rocket_row, rocket_col;  /* rocket location */

    /* Enroll In PVM */
    mytid = pvm_mytid();

    /* Receive Location Of rocket */
    msgtype = 0;
    pvm_recv(-1, msgtype);
    pvm_upkint(rocket_row, 1, 1);
    pvm_ukpint(rocket_col, 1, 1);


    /* Get Initial Location */
    initialLocation(ROBOT, &robot_row, &rocket_row);

    printf("rocket's location is %d, %d. my location is %d,%d",
           rocket_row, rocket_col, robot_row, robot_col);




  }

