|Version 2 of Rabbit Hunt
CIT 591, David Matuszek, Fall 2001
static int random(int min, int max), defined in the
Animalclass. If you create your own random number generator to control the rabbit's moves, it's not possible for me to reset it to the beginning.
Stepbutton), you will see exactly where the fox and the rabbit look. The speed control also controls how rapidly the animals look around.
void main(args)method in
Graderrather than the one in
RabbitHunt. We will use this program (or something very like it) to grade your program.
Model.NUMBER_OF_COLUMNShave been added, in case your program wants to know the size of the field.
Speedscrollbar" has been fixed.
Turn in your
Rabbit.java file via Blackboard by Noon, October
31. Do not supply any additional files;
Rabbit.java is the
only file you are responsible for. We will supply the rest.
We will run your program at least 100 times, using some version of
(not necessarily the exact version that you have). Your grade on the program
will be the percentage of times that the rabbit escapes, plus some points for
Style points will be computed this way. Perfect style is worth 20 points; you will get one point less for each style error that I find in your program, down to zero points. If you make the same style error in several places, you will lose several points for it. For this assignment, "perfect style" is defined by Rule 1. It would be a good idea to read through Sections 1 through 5 of the style book in order to see the kinds of things that may be counted.