|
@@ -32,83 +32,83 @@ public class ScoreSheet {
|
32
|
32
|
|
33
|
33
|
|
34
|
34
|
public void printScoreCard(){
|
35
|
|
- System.out.print("1. Aces: Totals all Ones ** Score ** ");
|
|
35
|
+ System.out.print(String.format("%-35s","1. Aces: Totals all Ones"));
|
36
|
36
|
if(getScore(ScoreSheet.ROW.ACES) != null) {
|
37
|
|
- System.out.println(getScore(ScoreSheet.ROW.ACES));
|
|
37
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.ACES) + " **");
|
38
|
38
|
} else {
|
39
|
|
- System.out.println("open");
|
|
39
|
+ System.out.println("** open **");
|
40
|
40
|
}
|
41
|
|
- System.out.print("2. Twos: Totals all Twos ** Score ** ");
|
|
41
|
+ System.out.print(String.format("%-35s","2. Twos: Totals all Twos"));
|
42
|
42
|
if(getScore(ScoreSheet.ROW.TWOS) != null) {
|
43
|
|
- System.out.println(getScore(ScoreSheet.ROW.TWOS));
|
|
43
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.TWOS) + " **");
|
44
|
44
|
} else {
|
45
|
|
- System.out.println("open");
|
|
45
|
+ System.out.println("** open **");
|
46
|
46
|
}
|
47
|
|
- System.out.print( "3. Threes: Totals all Threes ** Score ** ");
|
|
47
|
+ System.out.print(String.format("%-35s", "3. Threes: Totals all Threes"));
|
48
|
48
|
if(getScore(ScoreSheet.ROW.THREES) != null) {
|
49
|
|
- System.out.println(getScore(ScoreSheet.ROW.THREES));
|
|
49
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.THREES) + " **");
|
50
|
50
|
} else {
|
51
|
|
- System.out.println("open");
|
|
51
|
+ System.out.println("** open **");
|
52
|
52
|
}
|
53
|
|
- System.out.print( "4. Fours: Totals all Fours ** Score ** ");
|
|
53
|
+ System.out.print(String.format("%-35s", "4. Fours: Totals all Fours"));
|
54
|
54
|
if(getScore(ScoreSheet.ROW.FOURS) != null) {
|
55
|
|
- System.out.println(getScore(ScoreSheet.ROW.FOURS));
|
|
55
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.FOURS) + " **");
|
56
|
56
|
} else {
|
57
|
|
- System.out.println("open");
|
|
57
|
+ System.out.println("** open **");
|
58
|
58
|
}
|
59
|
|
- System.out.print( "5. Fives: Totals all Fives ** Score ** ");
|
|
59
|
+ System.out.print(String.format("%-35s", "5. Fives: Totals all Fives"));
|
60
|
60
|
if(getScore(ScoreSheet.ROW.FIVES) != null) {
|
61
|
|
- System.out.println(getScore(ScoreSheet.ROW.FIVES));
|
|
61
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.FIVES) + " **");
|
62
|
62
|
} else {
|
63
|
|
- System.out.println("open");
|
|
63
|
+ System.out.println("** open **");
|
64
|
64
|
}
|
65
|
|
- System.out.print( "6. Sixes: Totals all Sixes ** Score ** ");
|
|
65
|
+ System.out.print(String.format("%-35s", "6. Sixes: Totals all Sixes"));
|
66
|
66
|
if(getScore(ScoreSheet.ROW.SIXES) != null) {
|
67
|
|
- System.out.println(getScore(ScoreSheet.ROW.SIXES));
|
|
67
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.SIXES) + " **");
|
68
|
68
|
} else {
|
69
|
|
- System.out.println("open");
|
|
69
|
+ System.out.println("** open **");
|
70
|
70
|
}
|
71
|
|
- System.out.print( "7. 3 of a Kind ** Score ** ");
|
|
71
|
+ System.out.print(String.format("%-35s", "7. 3 of a Kind"));
|
72
|
72
|
if(getScore(ScoreSheet.ROW.THREEOFAKIND) != null) {
|
73
|
|
- System.out.println(getScore(ScoreSheet.ROW.THREEOFAKIND));
|
|
73
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.THREEOFAKIND) + " **");
|
74
|
74
|
} else {
|
75
|
|
- System.out.println("open");
|
|
75
|
+ System.out.println("** open **");
|
76
|
76
|
}
|
77
|
|
- System.out.print( "8. 4 of a Kind ** Score ** ");
|
|
77
|
+ System.out.print(String.format("%-35s", "8. 4 of a Kind"));
|
78
|
78
|
if(getScore(ScoreSheet.ROW.FOUROFAKIND) != null) {
|
79
|
|
- System.out.println(getScore(ScoreSheet.ROW.FOUROFAKIND));
|
|
79
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.FOUROFAKIND) + " **");
|
80
|
80
|
} else {
|
81
|
|
- System.out.println("open");
|
|
81
|
+ System.out.println("** open **");
|
82
|
82
|
}
|
83
|
|
- System.out.print( "9. Full House ** Score ** ");
|
|
83
|
+ System.out.print(String.format("%-35s", "9. Full House"));
|
84
|
84
|
if(getScore(ScoreSheet.ROW.FULLHOUSE) != null) {
|
85
|
|
- System.out.println(getScore(ScoreSheet.ROW.FULLHOUSE));
|
|
85
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.FULLHOUSE) + " **");
|
86
|
86
|
} else {
|
87
|
|
- System.out.println("open");
|
|
87
|
+ System.out.println("** open **");
|
88
|
88
|
}
|
89
|
|
- System.out.print("10. Small Straight: Sequence of 4 ** Score ** ");
|
|
89
|
+ System.out.print(String.format("%-35s","10. Small Straight: Sequence of 4"));
|
90
|
90
|
if(getScore(ScoreSheet.ROW.SMALLSTRAIGHT) != null) {
|
91
|
|
- System.out.println(getScore(ScoreSheet.ROW.SMALLSTRAIGHT));
|
|
91
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.SMALLSTRAIGHT) + " **");
|
92
|
92
|
} else {
|
93
|
|
- System.out.println("open");
|
|
93
|
+ System.out.println("** open **");
|
94
|
94
|
}
|
95
|
|
- System.out.print("11. Large Striaght: Sequence of 5 ** Score ** ");
|
|
95
|
+ System.out.print(String.format("%-35s","11. Large Striaght: Sequence of 5"));
|
96
|
96
|
if(getScore(ScoreSheet.ROW.LARGESTRAIGHT) != null) {
|
97
|
|
- System.out.println(getScore(ScoreSheet.ROW.LARGESTRAIGHT));
|
|
97
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.LARGESTRAIGHT) + " **");
|
98
|
98
|
} else {
|
99
|
|
- System.out.println("open");
|
|
99
|
+ System.out.println("** open **");
|
100
|
100
|
}
|
101
|
|
- System.out.print("12. Yahtzee: 5 of a Kind ** Score ** ");
|
|
101
|
+ System.out.print(String.format("%-35s","12. Yahtzee: 5 of a Kind "));
|
102
|
102
|
if(getScore(ScoreSheet.ROW.YAHTZEE) != null) {
|
103
|
|
- System.out.println(getScore(ScoreSheet.ROW.YAHTZEE));
|
|
103
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.YAHTZEE) + " **");
|
104
|
104
|
} else {
|
105
|
|
- System.out.println("open");
|
|
105
|
+ System.out.println("** open **");
|
106
|
106
|
}
|
107
|
|
- System.out.print( "13. Chance: Sum of Dice ** Score ** ");
|
|
107
|
+ System.out.print(String.format("%-35s", "13. Chance: Sum of Dice"));
|
108
|
108
|
if(getScore(ScoreSheet.ROW.CHANCE) != null) {
|
109
|
|
- System.out.println(getScore(ScoreSheet.ROW.CHANCE));
|
|
109
|
+ System.out.println("** " + getScore(ScoreSheet.ROW.CHANCE) + " **");
|
110
|
110
|
} else {
|
111
|
|
- System.out.println("open");
|
|
111
|
+ System.out.println("** open **");
|
112
|
112
|
}
|
113
|
113
|
System.out.println();
|
114
|
114
|
}
|