working on the winningProcess method of the Class Game.java

This commit is contained in:
2020-09-10 19:42:01 +02:00
parent 11c0d12b27
commit 7303256680
4 changed files with 7 additions and 3 deletions

View File

@@ -88,7 +88,6 @@ public class Game {
private void newRound(){
round++;
System.out.println();
System.out.println("----- ROUND " + round + " -----");
for (Player p: players) {
p.clearHand();
@@ -124,9 +123,14 @@ public class Game {
private void winningProcess(){
int highestCardIndex = -1;
for (int i = 0; i < pickedCards.size(); i++) {
if (pickedCards.get(i).getCardValue().getIndex() == 14){
players.get(i).setTimesWon(players.get(i).getTimesWon()+1);
}
if (pickedCards.get(i).getCardType().getIndex() == leadingType){
}
}
}

Binary file not shown.