Mars Rovers Squad

How to execute the program:

To config for first time follow below structures:

  • composer install
  • php index.php < command.txt

The output is the new position on Plateau for each Rover on Squad.

How to execute the program test suite:

make test

The output is the test results.

Output:

The output for each rover should be its final co-ordinates and heading.

Example

Test input:
5 5
1 2 N
LMLMLMLMM
3 3 E
MMRMMRMRRM

Test output:
1 3 N
5 1 E