merge the new developmentbranch into the test branch #39
@@ -69,10 +69,10 @@ public void received(RequestDieMessage msg, int from) {
|
||||
int maximumRoll = 0;
|
||||
|
||||
for (Map.Entry<Integer, Integer> entry : this.diceResults.entrySet()) {
|
||||
if (maximumRoll == entry.getKey()) {
|
||||
if (maximumRoll == entry.getValue()) {
|
||||
this.playersHaveToRoll.add(entry.getKey());
|
||||
}
|
||||
else if (maximumRoll < entry.getKey()) {
|
||||
else if (maximumRoll < entry.getValue()) {
|
||||
maximumRoll = entry.getValue();
|
||||
this.playersHaveToRoll.clear();
|
||||
this.playersHaveToRoll.add(entry.getKey());
|
||||
|
||||
Reference in New Issue
Block a user