You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public boolean hasSank(); // returns if the <type> Ship has all of its positions hit.
public void resetShip(); //sets amounts of hits back to 0
public int[][] init(int[][] board); //initilizes the board with a certain ship
public void incrementHits(); //increments number of hits
public int[][] goRightfromPos(int row, int col, int[][] board); //checks if the random position selected can fit X amounts of slots right(X depends on the ship size, each has a unique one
public int[][] goLeftfromPos(int row, int col, int[][] board); //checks if the random position selected can fit X amounts of slots left(X depends on the ship size, each has a unique one
public int[][] goUpfromPos(int row, int col, int[][] board); //checks if the random position selected can fit X amounts of slots up(X depends on the ship size, each has a unique one
public int[][] goDownfromPos(int row, int col, int[][] board); //checks if the random position selected can fit X amounts of slots down(X depends on the ship size, each has a unique one