Method used for autograding and testing your code. The input string will be a series of characters (for example, "n123sswwdasdassadwas", "n123sss:q", "lwww". The engine should behave exactly as if the user typed these characters into the engine using interactWithKeyboard. Recall that strings ending
(String input)
| 38 | * @return the 2D TETile[][] representing the state of the world |
| 39 | */ |
| 40 | public TETile[][] interactWithInputString(String input) { |
| 41 | // TODO: Fill out this method so that it run the engine using the input |
| 42 | // passed in as an argument, and return a 2D tile representation of the |
| 43 | // world that would have been drawn if the same inputs had been given |
| 44 | // to interactWithKeyboard(). |
| 45 | // |
| 46 | // See proj3.byow.InputDemo for a demo of how you can make a nice clean interface |
| 47 | // that works for many different input types. |
| 48 | |
| 49 | TETile[][] finalWorldFrame = null; |
| 50 | return finalWorldFrame; |
| 51 | } |
| 52 | } |