Skip to content

Commit 5518849

Browse files
Merge branch 'develop' of https://github.com/SharifAIChallenge/AIC21-Server into develop
2 parents 7cb6df1 + 3929556 commit 5518849

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/ir/sharif/aichallenge/server/logic/model/GameJudge.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import ir.sharif.aichallenge.server.logic.model.Colony.Colony;
44

5+
import java.util.Collections;
56
import java.util.Comparator;
67
import java.util.List;
78
import java.util.stream.Collectors;
@@ -26,6 +27,7 @@ public Colony getWinner() {
2627
}
2728

2829
private Colony getWinnerByAssets(List<Colony> colonies) {
30+
Collections.shuffle(colonies);
2931
colonies.sort(new ColonyComparator().reversed());
3032
return colonies.get(0);
3133
}

0 commit comments

Comments
 (0)