Closed darozak closed 7 months ago
Added a robot stats structure that will make it easy to track and report overall robot status via the console log (https://github.com/darozak/Advolition/commit/dec7f3220f6b435853ed546300b0a2b519663f32). This allows me to easily follow the robot's movements.
I also created speed parameters for both the robot and the tiles so that the tiles serve to slow or completely stop the robot's forward movement.
Now I need to code the robot so that a tile with a speed of zero prevents it's movement.
Robot is blocked from going through walls (https://github.com/darozak/Advolition/commit/09f667845b568bf28975edb0cdddba6e9f67dc9e).
I've created a data structure to hold an ASCII map and a function to convert the map symbol at a particular coordinate to an index value for the corresponding object (https://github.com/darozak/Advolition/commit/566af9153d346fb29a6de03d5e822601580c52f6).
Now I need to indicate which objects are barriers and prevent the robot from moving into a barrier.