Ejemplo n.º 1
0
 /** 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);
 }
Ejemplo n.º 2
0
 /** 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);
 }