packages/warriorjs-cli/src/ui/printLevelReport.js
function printLevelReport(
  profile,
  { warrior: warriorScore, timeBonus, clearBonus },
  totalScore,
  grade,
) {
  printLine(`Warrior Score: ${warriorScore}`);
  printLine(`Time Bonus: ${timeBonus}`);
  printLine(`Clear Bonus: ${clearBonus}`);

  if (profile.isEpic()) {
    printLine(`Level Grade: ${getGradeLetter(grade)}`);
    printTotalScore(profile.currentEpicScore, totalScore);
  } else {
    printTotalScore(profile.score, totalScore);
  }
}
function printLevelReport(
  profile,
  { warrior: warriorScore, timeBonus, clearBonus },
  totalScore,
  grade,
) {
  printLine(`Warrior Score: ${warriorScore}`);
  printLine(`Time Bonus: ${timeBonus}`);
  printLine(`Clear Bonus: ${clearBonus}`);

  if (profile.isEpic()) {
    printLine(`Level Grade: ${getGradeLetter(grade)}`);
    printTotalScore(profile.currentEpicScore, totalScore);
  } else {
    printTotalScore(profile.score, totalScore);
  }
}
function printLevelReport ( profile , { warrior : warriorScore , timeBonus , clearBonus } , totalScore , grade , ) { printLine ( ` ${ warriorScore } ` ) ; printLine ( ` ${ timeBonus } ` ) ; printLine ( ` ${ clearBonus } ` ) ; if ( profile . isEpic ( ) ) { printLine ( ` ${ getGradeLetter ( grade ) } ` ) ; printTotalScore ( profile . currentEpicScore , totalScore ) ; } else { printTotalScore ( profile . score , totalScore ) ; } }
Prints the level report.

@param {Profile} profile The profile.
@param {Object} scoreParts The score components.
@param {number} scoreParts.warrior The points earned by the warrior.
@param {number} scoreParts.timeBonus The time bonus.
@param {number} scoreParts.clearBonus The clear bonus.
@param {number} totalScore The total score.
@param {number} grade The grade.
Prints the level report .