/** Create a score board for the final result. */ public ScoreBoard(String title, String text, String prefix, int[] scores) { int total = 0; for (int val : scores) { total += val; } makeImage(title, text, prefix, total); addMapScores(scores.length - 1, scores); printResultToTerminal(title, scores); }
/** Create a score board for an interim result. */ public ScoreBoard(String title, String text, String prefix, int map, int[] scores) { makeImage(title, text, prefix, scores[map]); addMapScores(map, scores); }