Question: Boggle.java Set the ArrayList member variable that stores the Boggle data equal to method call shakeDice in class Board core package Board class Add member

Boggle.java

Set the ArrayList member variable that stores the Boggle data equal to method call shakeDice in class Board

core package

Board class

Add member variable of class ArrayList specifically using class String as the data type for the ArrayList to store the game data

Generate a getter for the game data member variable

Implement method shakeDice to do the following:Loop through the 16 dice

Randomly select 1 of the 16 dice

Call method rollDie in class Die

Store the returned value in the ArrayList created above for the game data

Be sure to use each die only once, you will have to keep track of which die was used

Implement a method that will loop through the ArrayList of game data and display the board to the output window of the IDE (see figure 2)

Die class

Implement method rollDie to do the following:

Randomly select one of the six letters of the die that will be used as the game data

Return that value

 Boggle.java Set the ArrayList member variable that stores the Boggle data

Boggle board IAN W S W A E F M D W O L D A Figure 2 output from method displayGameData0

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!