Question: Java problem, regarding treasure hunt board game. Q17c. Hidden treasure hunt island board game import java.util.ArrayList; public class Island { Treasure [][] Island; /** *Constructor
Java problem, regarding treasure hunt board game.
Q17c. Hidden treasure hunt island board game import java.util.ArrayList; public class Island { Treasure [][] Island; /** *Constructor class Island *Prepares the Island size with 16 rows and 16 columns *With all positions set to EMPTY */ Public Island() { } // Insert Code Here /** *Alternative constructor class Island *Prepares island size with n* of rows and columns entered * With all positions set to preselected value (PSV) */ public Island (int row, int columns, Treasure pSV) { } // Insert Code Here /*Returns true only if A(row)and B(column) co-ordinates are in the Island */ public boolean treasureLocated(int A, int B) { //Insert Code Here }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
