Question: Board javaGamejavaPlarjavaD Clickable-javaPunishable java ResetBoard,java 1 package cmps251.homework3.spacetypes Player.java Clickable.java 3 import cmps251.homework3.interfaces.ResetBoard; 49/ 5 The BullSpace represents a bull. When uncovered, it should reset

 Board javaGamejavaPlarjavaD Clickable-javaPunishable java ResetBoard,java 1 package cmps251.homework3.spacetypes Player.java Clickable.java 3
import cmps251.homework3.interfaces.ResetBoard; 49/ 5 The BullSpace represents a bull. When uncovered, it
should reset 6 the game by making all rabbits escape and hide

Board javaGamejavaPlarjavaD Clickable-javaPunishable java ResetBoard,java 1 package cmps251.homework3.spacetypes Player.java Clickable.java 3 import cmps251.homework3.interfaces.ResetBoard; 49/ 5 The BullSpace represents a bull. When uncovered, it should reset 6 the game by making all rabbits escape and hide in new places by calling bul1EncounteredO 7 in the Reset Board. Hint: you will use your work from tode XX here. 9 BullSpace is displayed as "B" when it is revealed Cuncovered). 10 12 3 //T000 04 Fix the errors. This class is not implementing all the abstract 14 //methods from the superclass! Read above for hint on what your new method 15 //bodies should contain 16 public closs BullSpase extends Space t 018 private ResetBoard mReset Board 17 19 20 public BullSpace(int index, ResetBoard resetBoard) t 21 superCindex); mResetBoard resetBoard; 23 24 25 * 1. Call Space's onclick (which reveals the space), then: 2. print out "You were knocked down by a bull!" 3. call mResetBoard's bullEncountered (which should be implemented in Board) 26 27 28 29 T0O 12 implement the method based on the obove description 1e0verride 32 public void onClick() { //FI 34 35

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!