bool validLocation(const Player& player, short shipNumber, char size) { short numberOfRows = (toupper(size)=='L')?LARGEROWS:SMALLROWS; short numberOfCols = (toupper(size)=='L')?LARGECOLS:SMALLCOLS; // your code goes here ... // replace the return value return true; }