Here is a screenshot of what I have
I was given this problem, and have so far started trying to solve it, however I am stuck as to how to go about solving it, and Applying Design Pattern concepts to it. The problem wants user input of F,F,R,L,F,R,F to result in the output of (1,3)E coordinates. The picture below shows a graph table of coordinates, and based on the console input for the vehicle, it will either move forward, right, or left, which will change its coordinates. The screenshot also has conditions as to how the input should be validated.
Aucun commentaire:
Enregistrer un commentaire