This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

DJAnyck1
DJAnyck1 presents ...

2012/11/15

Andres' GreenfootCh.3

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.

1884 views / 12 in the last 7 days

Tags: None

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Thu Nov 15 19:39:55 UTC 2012 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.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.