function buildScore(game) {
    let rt = 0,
        color = 'noscore',
        scored = false
        tooltip = '';

    if (game.review_count && game.review_count > 2) {
        // scored
        rt = game.rating_avg;
        color = Math.floor(game.rating_avg);
        scored = true;
        tooltip = 'Average ' + game.rating_avg + '/10 from ' + game.review_count + ' reviews';
    } else if (game.review_count > 0) {
        // not ranked
        rt = game.rating_avg + ' ?';
        color = 'unranked-' + Math.floor(game.rating_avg);
        scored = true;
        tooltip = 'Average ' + game.rating_avg + '/10 from ' + game.review_count + ' review' + (game.review_count > 1 ? 's' : '') + ' (not reliable!)';
    } else {
        // not scored
        rt = '---';
        tooltip = 'No review yet!';
    }

    return { rt, color, scored, tooltip };
}
/**
 * Builds the score data from the game data
 *
 * @param {String} game the game data
 */
Builds the score data from the game data
@param {String} game the game data
Builds the score data from the game data @param { String } game the game data
function buildScore(game) {
    let rt = 0,
        color = 'noscore',
        scored = false
        tooltip = '';
    if (game.review_count && game.review_count > 2) {
        rt = game.rating_avg;
        color = Math.floor(game.rating_avg);
        scored = true;
        tooltip = 'Average ' + game.rating_avg + '/10 from ' + game.review_count + ' reviews';
    } else if (game.review_count > 0) {
        rt = game.rating_avg + ' ?';
        color = 'unranked-' + Math.floor(game.rating_avg);
        scored = true;
        tooltip = 'Average ' + game.rating_avg + '/10 from ' + game.review_count + ' review' + (game.review_count > 1 ? 's' : '') + ' (not reliable!)';
    } else {
        rt = '---';
        tooltip = 'No review yet!';
    }
    return { rt, color, scored, tooltip };
}
function buildScore ( game ) { let rt = 0 , color = 'noscore' , scored = false tooltip = '' ; if ( game . review_count && game . review_count > 2 ) { rt = game . rating_avg ; color = Math . floor ( game . rating_avg ) ; scored = true ; tooltip = 'Average ' + game . rating_avg + '/10 from ' + game . review_count + ' reviews' ; } else if ( game . review_count > 0 ) { rt = game . rating_avg + ' ?' ; color = 'unranked-' + Math . floor ( game . rating_avg ) ; scored = true ; tooltip = 'Average ' + game . rating_avg + '/10 from ' + game . review_count + ' review' + ( game . review_count > 1 ? 's' : '' ) + ' (not reliable!)' ; } else { rt = '---' ; tooltip = 'No review yet!' ; } return { rt , color , scored , tooltip } ; }
Builds the score data from the game data
 @param {String} game the game data
Builds the score data from the game data @param { String } game the game data
// scored // not ranked // not scored