Changes by jorda

This commit is contained in:
2022-09-15 22:36:16 +02:00
parent 8fa74d70d7
commit 2134469b2a
4 changed files with 3 additions and 4 deletions

View File

@@ -8,7 +8,8 @@ public class Referee {
TYPENUM playedCardType = playedCard.getType();
VALUENUM playedCardValue = playedCard.getValue();
return playedCardType == TYPENUM.JOKER
return currentCardType == TYPENUM.JOKER
|| playedCardType == TYPENUM.JOKER
|| playedCardType == currentCardType
|| playedCardValue == currentCardValue;
}

View File

@@ -6,8 +6,6 @@ import java.util.List;
import java.util.Scanner;
public class Bot extends Player {
private List<Card> hand;
private Dealer dealer;
public Bot(Dealer dealer) {
super(dealer);

View File

@@ -9,7 +9,6 @@ import java.util.List;
import java.util.Scanner;
public class Human extends Player {
private List<Card> hand;
public Human(Dealer dealer) {
super(dealer);

View File

@@ -6,6 +6,7 @@ import mau.mau.Dealer;
import java.util.List;
public abstract class Player {
private List<Card> hand;
private Dealer dealer;