function minesweeperHighScore(duration, boardSize, numBombs){
    const MAX_SCORE_DURATION = 1000; // Max duration after which score is not affected
    const SCORE_DURATION_COEFFICIENT = 1000; // How much the duration affects the score
    return Math.ceil(numBombs / boardSize * Math.max(1, (MAX_SCORE_DURATION - duration) * SCORE_DURATION_COEFFICIENT));
}
/*
 * Name: minesweeperHighScore
 * Description: Calculates a highscore for a minesweepr game
 * Return: A score
*/
minesweeperHighScore
Description: Calculates a highscore for a minesweepr game
Return: A score
minesweeperHighScore Description : Calculates a highscore for a minesweepr game Return : A score
function minesweeperHighScore(duration, boardSize, numBombs){
    const MAX_SCORE_DURATION = 1000; 
    const SCORE_DURATION_COEFFICIENT = 1000; 
    return Math.ceil(numBombs / boardSize * Math.max(1, (MAX_SCORE_DURATION - duration) * SCORE_DURATION_COEFFICIENT));
}
function minesweeperHighScore ( duration , boardSize , numBombs ) { const MAX_SCORE_DURATION = 1000 ; const SCORE_DURATION_COEFFICIENT = 1000 ; return Math . ceil ( numBombs / boardSize * Math . max ( 1 , ( MAX_SCORE_DURATION - duration ) * SCORE_DURATION_COEFFICIENT ) ) ; }
Name: minesweeperHighScore
 Description: Calculates a highscore for a minesweepr game
 Return: A score
Name : minesweeperHighScore Description : Calculates a highscore for a minesweepr game Return : A score
// Max duration after which score is not affected // How much the duration affects the score