//Hare class public class Hare extends Animal{ public Hare() { name = "Hare"; } public int move() { int roll; //Hare moves roll = 1 + (int)(Math.random() * 10); // make moves if(roll <= 2 && roll >= 1)//sleep { position = position + 0; } else if(roll <= 4 && roll >= 3)//Big Hop { position = position + 9; } else if(roll == 5)//Big slip { position = position - 12; } else if(roll <= 8 && roll >= 6)//Small hop { position = position + 1; } else if(roll <= 10 && roll >= 9)//small slip { position = position - 2; } if(position <= 0) position = 1;//if behind start line, put on start if(position > 70) position = 70;//if over 70, make it 70 return position; } public String toString() { return super.toString(); } }