This project gave me practice with the concepts of file reading, object oriented programming, and arrays.
The simulator had to follow these conditions:
The project was split into two parts. For the first part of the project we had to design a map, and we were given an algorithm to turn into code. The program had to read the file and examine each character. If the character was labeled a āWā that stood for a wall, and āDā stood for dirt. Here is an example of the map:
For the second part of the project we I had to use my knowledge of Object Oriented Programming. I created a Roombrah class, which controlled the movement of the roombrah. Whenever the roombrah would hit a wall, it would have to bounce of the wall and head in another direction. If the roombrah came across dirt it had to clean it up.
You can see the full simulation here: https://www.youtube.com/watch?v=DG5AZFdsSWc