Skip to content
Snippets Groups Projects
Commit 8f75b34a authored by Piers Williams's avatar Piers Williams
Browse files

Added win logging

parent ad046709
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -153,10 +153,16 @@ public class OrderProcessor {
for(int i = 0; i < state.getNumberOfPlayers(); i++){
if(losers.contains(i)) continue;
winner = i;
if (metrics != null) {
metrics.onTurnEnd(state, winner, losers);
}
return;
}
}else if(state.getNumberOfPlayers() == ruleLosers.size()){
winner = currPlayer;
if (metrics != null) {
metrics.onTurnEnd(state, winner, losers);
}
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment