| Package | Description |
|---|---|
| game_backend |
| Modifier and Type | Field and Description |
|---|---|
private Card.Ranks |
Card.rank |
| Modifier and Type | Method and Description |
|---|---|
Card.Ranks |
Card.getRank()
Returns the rank of the present card
|
static Card.Ranks |
Card.Ranks.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Card.Ranks[] |
Card.Ranks.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> |
PokerRules.computeSameRank(Card[] cards)
Groups all cards with the same rank in a list that is addressed with the respective rank
in a map
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
PokerRules.getHighCards(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Returns the positions of the vector of cards passed as argument that are high cards
|
protected int[] |
PokerRules.isAce(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Ace"
|
protected int[] |
PokerRules.isAKQJUnsuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "AKQJ unsuited"
|
protected int[] |
PokerRules.isFourOfAKind(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Four of a kind"
|
protected int[] |
PokerRules.isFullHouse(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Full House"
|
protected int[] |
PokerRules.isHighPair(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "High pair"
|
protected int[] |
PokerRules.isJackOrQueenOrKing(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Jack, Queen or King"
|
protected int[] |
PokerRules.isJTSuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "JT suited"
|
protected int[] |
PokerRules.isKJUnsuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "KJ unsuited"
|
protected int[] |
PokerRules.isKQJUnsuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "KQJ unsuited"
|
protected int[] |
PokerRules.isKQUnsuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "KQ unsuited"
|
protected int[] |
PokerRules.isKTSuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "KT suited"
|
protected int[] |
PokerRules.isLowPair(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Low pair"
|
protected int[] |
PokerRules.isNOfAKind(Card[] cards,
int n,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "N of a kind"
|
protected int[] |
PokerRules.isQJSuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "QJ suited"
|
protected int[] |
PokerRules.isQJUnsuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "QJ unsuited"
|
protected int[] |
PokerRules.isQTSuited(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "QT suited"
|
protected int[] |
PokerRules.isThreeAces(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Three aces"
|
protected int[] |
PokerRules.isThreeOfAKind(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Three of a kind"
|
protected int[] |
PokerRules.isTwoPair(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Two pair"
|
protected int[] |
PokerRules.isTwoSuitedHighCards(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Two suited high cards"
|
| Constructor and Description |
|---|
Card(Card.Ranks rank,
Card.Suits suit)
Constructor of Card.
|