DOWNLOAD
We Can Rebuild Him
The required reading for this week explores a predator-prey simulation called foxes-and-rabbits. It is the classic battle of survival—eat or try not to be eaten—all played out in little squares in low resolution. Yes, perhaps something is lost in the presentation, but a lot is happening behind the scenes in the code base.
In this Application, you take a rooting interest in the hunters or the hunted and refactor the program to produce a slyer fox or a heartier rabbit. This is your opportunity to show real ingenuity, imagination, and innovation.
Note: The necessary files come as part of the packaged filed included with the course CD and/or are downloadable from the book's website for free.
Unzip and run the project foxes-and-rabbits-v2; save it as foxes-and-rabbits-last_name-first_initial. For example, Sally Ride's project would be named foxes-and-rabbits-ride-s. All of your code should be added to this existing project.
In the current implementation, neither the fox nor the rabbit have any form of "intelligence." Choose either the Fox or the Rabbit class (but only one of the classes) and examine the code for the class. Run the program a few times to set a baseline for the two populations. How many foxes and rabbits are generally left after a fixed period of time?
Briefly describe how you could modify the code to improve the movement of your chosen class , whether it allows the foxes to move more purposefully to round up the rabbits or it helps the rabbits to see danger coming before it is too late
Implement the code you described in Step 3. Make sure to properly document the code, and apply proper coding standards. Remember, you can only change one of the classes, and you cannot introduce other, outside classes that negatively impact the opposing team. For example, if you are programming for the rabbits, it is not sporting to introduce a class called FoxTrap.
Run the improved version of the program a few times to determine whether or not your improvements are having the desired effect. Are the populations significantly different than the populations you observed before your implementation? If not, try to determine why, and start again.
At the conclusion of the Application, package your program into a single .ZIP file. Include your short-answer responses from this Application (including, for example, your proposed modifications from Step 3) to the .ZIP file as well. Save these responses in a word processing document.
We Can Rebuild Him
The required reading for this week explores a predator-prey simulation called foxes-and-rabbits. It is the classic battle of survival—eat or try not to be eaten—all played out in little squares in low resolution. Yes, perhaps something is lost in the presentation, but a lot is happening behind the scenes in the code base.
In this Application, you take a rooting interest in the hunters or the hunted and refactor the program to produce a slyer fox or a heartier rabbit. This is your opportunity to show real ingenuity, imagination, and innovation.
Note: The necessary files come as part of the packaged filed included with the course CD and/or are downloadable from the book's website for free.
Unzip and run the project foxes-and-rabbits-v2; save it as foxes-and-rabbits-last_name-first_initial. For example, Sally Ride's project would be named foxes-and-rabbits-ride-s. All of your code should be added to this existing project.
In the current implementation, neither the fox nor the rabbit have any form of "intelligence." Choose either the Fox or the Rabbit class (but only one of the classes) and examine the code for the class. Run the program a few times to set a baseline for the two populations. How many foxes and rabbits are generally left after a fixed period of time?
Briefly describe how you could modify the code to improve the movement of your chosen class , whether it allows the foxes to move more purposefully to round up the rabbits or it helps the rabbits to see danger coming before it is too late
Implement the code you described in Step 3. Make sure to properly document the code, and apply proper coding standards. Remember, you can only change one of the classes, and you cannot introduce other, outside classes that negatively impact the opposing team. For example, if you are programming for the rabbits, it is not sporting to introduce a class called FoxTrap.
Run the improved version of the program a few times to determine whether or not your improvements are having the desired effect. Are the populations significantly different than the populations you observed before your implementation? If not, try to determine why, and start again.
At the conclusion of the Application, package your program into a single .ZIP file. Include your short-answer responses from this Application (including, for example, your proposed modifications from Step 3) to the .ZIP file as well. Save these responses in a word processing document.
Комментариев нет:
Отправить комментарий