I've create this project just for fun because, you know, developers love write code = )
Here some instructions.
Check this link out: https://gist.github.com/elo7-developer/1a40c96a5d062b69f02c
- Run
mvn clean package
- Run
java -jar target/mars-1.0-SNAPSHOT-jar-with-dependencies.jar src/test/resources/input.txt
And voilĂ , it will show up this output:
Position(geolocation=Geolocation(x=1, y=3), orientation=N) Position(geolocation=Geolocation(x=5, y=1), orientation=E)
That's all, folks!