acceptableBombLoc(loc){
		let squareRow = this.getRow(loc);
		let squareCol = this.getCol(loc);

		// Search 3x3 grid around location for bombs
		for (let row = Math.max(squareRow - 1, 0); row < Math.min(squareRow + 2, this.boardSize); row++){
			for (let col = Math.max(squareCol - 1, 0); col < Math.min(squareCol + 2, this.boardSize); col++){
				let bombsNearBy = this.countBombsNear(row, col);
				// If too many bombs nearby then not acceptable location
				if (bombsNearBy >= Minesweeper.MAX_BOMBS_3X3){
					return false;
				}
			}
		}
		return true;
	}
/*
     * Name: acceptableBombLoc
     * Description: Determines whether a location is a suitable place to add a bomb
     * Return: True if acceptable false otherwise
    */
acceptableBombLoc
Description: Determines whether a location is a suitable place to add a bomb
Return: True if acceptable false otherwise
acceptableBombLoc Description : Determines whether a location is a suitable place to add a bomb Return : True if acceptable false otherwise
acceptableBombLoc(loc){
		let squareRow = this.getRow(loc);
		let squareCol = this.getCol(loc);
		for (let row = Math.max(squareRow - 1, 0); row < Math.min(squareRow + 2, this.boardSize); row++){
			for (let col = Math.max(squareCol - 1, 0); col < Math.min(squareCol + 2, this.boardSize); col++){
				let bombsNearBy = this.countBombsNear(row, col);
				if (bombsNearBy >= Minesweeper.MAX_BOMBS_3X3){
					return false;
				}
			}
		}
		return true;
	}
acceptableBombLoc ( loc ) { let squareRow = this . getRow ( loc ) ; let squareCol = this . getCol ( loc ) ; for ( let row = Math . max ( squareRow - 1 , 0 ) ; row < Math . min ( squareRow + 2 , this . boardSize ) ; row ++ ) { for ( let col = Math . max ( squareCol - 1 , 0 ) ; col < Math . min ( squareCol + 2 , this . boardSize ) ; col ++ ) { let bombsNearBy = this . countBombsNear ( row , col ) ; if ( bombsNearBy >= Minesweeper . MAX_BOMBS_3X3 ) { return false ; } } } return true ; }
Name: acceptableBombLoc
 Description: Determines whether a location is a suitable place to add a bomb
 Return: True if acceptable false otherwise
Name : acceptableBombLoc Description : Determines whether a location is a suitable place to add a bomb Return : True if acceptable false otherwise
// Search 3x3 grid around location for bombs // If too many bombs nearby then not acceptable location