You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
718 B
28 lines
718 B
// Carrier = 5
|
|
// Battleship = 4
|
|
// Cruiser = 3
|
|
// Submarine = 3
|
|
// Pilot = 2
|
|
public class Battleship{
|
|
private int[][] playerBaoard;
|
|
private int[][] computerBoardDisplay;
|
|
private int[][] computerBoardHidden;
|
|
private static int playerHits;
|
|
private static int ComputerHits;
|
|
public Battleship(int x, int y){
|
|
this.playerBoard = new int[x][y];
|
|
this.computerBoardDisplay = new int[x][y];
|
|
this.computerBoardHidden = new int[x][y];
|
|
}
|
|
|
|
public getComputerBoardHidden(){
|
|
return this.computerBoardHidden;
|
|
}
|
|
|
|
public getComputerBoardDisplay(){
|
|
return this.computerBoardDisplay;
|
|
}
|
|
|
|
public getPlayerBoard(){
|
|
return this.playerBaoard;
|
|
}
|