This solution requires Python v3.x.
python3 main.py input.txt
The input.txt is the input file. The format of which must follow the input specification provided in the problem description.
python3 -m unittest tests/rover_test.py
python3 -m unittest tests/parser_test.py