src/com/hamish/battleships/GameBoard.java
public void placeShip(int col, int row, String direction, int shipLength) {
        for (int i = 0; i < shipLength; i++) {
            if (direction.equalsIgnoreCase("R"))
                setPosition(SHIP, col + i, row);
            else
                setPosition(SHIP, col, row + i);
        }
    }
/**
     * Places the ships using * to denote where a ship is
     *
     * @param col X coordinate to place ship
     * @param row Y coordinate to place ship
     * @param direction   direction ship will be placed in
     * @param shipLength  length of the ship
     */
Places the ships using * to denote where a ship is
@param col X coordinate to place ship
@param row Y coordinate to place ship
@param direction   direction ship will be placed in
@param shipLength  length of the ship
Places the ships using * to denote where a ship is @param col X coordinate to place ship @param row Y coordinate to place ship @param direction direction ship will be placed in @param shipLength length of the ship
public void placeShip(int col, int row, String direction, int shipLength) {
        for (int i = 0; i < shipLength; i++) {
            if (direction.equalsIgnoreCase("R"))
                setPosition(SHIP, col + i, row);
            else
                setPosition(SHIP, col, row + i);
        }
    }
public void placeShip ( int col , int row , String direction , int shipLength ) { for ( int i = 0 ; i < shipLength ; i ++ ) { if ( direction . equalsIgnoreCase ( "R" ) ) setPosition ( SHIP , col + i , row ) ; else setPosition ( SHIP , col , row + i ) ; } }
Places the ships using * to denote where a ship is
 @param col X coordinate to place ship
 @param row Y coordinate to place ship
 @param direction   direction ship will be placed in
 @param shipLength  length of the ship
Places the ships using * to denote where a ship is @param col X coordinate to place ship @param row Y coordinate to place ship @param direction direction ship will be placed in @param shipLength length of the ship