

Report as inappropriate.
Instead of creating a new scenario for each robot task in the chapter three problem set, I thought it would be possible to create new subclasses to extend one robot to complete all the tasks. I realize now that I went over my head before I knew polymorphism exsited or was necessary for this kind of opperation. Now that I understand polymorphism, I was able to complete the chapter 3 problem set. In order for it to work, just be sure to run the TaskMaster(s) in their numarical order, after reseting the Karel World once one TaskMaster completes it's run.
1880 views / 8 in the last 7 days
Want to leave a comment? You must first log in.
No votes yet.