瀏覽代碼

printScoreCard method written

Lauren Green 6 年之前
父節點
當前提交
5eb86658ac
共有 1 個檔案被更改,包括 4 行新增6 行删除
  1. 4
    6
      src/main/java/io/zipcoder/casino/ScoreSheet.java

+ 4
- 6
src/main/java/io/zipcoder/casino/ScoreSheet.java 查看文件

@@ -38,12 +38,10 @@ public class ScoreSheet {
38 38
         return topTotalScore + bottomTotalScore;
39 39
         }
40 40
 
41
-
42
-    public void setScore(int score) {
43
-
44
-    }
45
-
46
-    public void printScore(){
41
+    public void printScoreCard(){
42
+        for(ROW r : ROW.values()) {
43
+            System.out.println(r + ": " + scores.get(r));
44
+        }
47 45
 
48 46
     }
49 47