Skip to content

Commit 8e3f582

Browse files
committed
Fixed a rank bug
- Case 5 and 4 were both A+
1 parent f1b8f85 commit 8e3f582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/wargame/Benchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private int rankPasses(HashMap<String, Boolean> criteria) {
191191
Iterator it = criteria.entrySet().iterator();
192192
while(it.hasNext()) {
193193
Map.Entry pair = (Map.Entry)it.next();
194-
if ((Boolean)pair.getValue()) {
194+
if ((Boolean)pair.getValue() == true) {
195195
passes++;
196196
}
197197
}
@@ -206,7 +206,7 @@ private String rankLetter(HashMap<String, Boolean> criteria) {
206206
letter = "A+";
207207
break;
208208
case 4:
209-
letter = "A+";
209+
letter = "A";
210210
break;
211211
case 3:
212212
letter = "B";

0 commit comments

Comments
 (0)