public abstract class PokerRules
extends java.lang.Object
| Constructor and Description |
|---|
PokerRules() |
| Modifier and Type | Method and Description |
|---|---|
abstract int[] |
advice(Card[] cards)
Abstract method.
|
protected java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> |
computeCandidateStraights(Card[] cards)
Computes all possible sequences that could end being a straight.
|
protected java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> |
computeSameRank(Card[] cards)
Groups all cards with the same rank in a list that is addressed with the respective rank
in a map
|
protected java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> |
computeSameSuit(Card[] cards)
Groups all cards with the same suit in a list that is addressed with the respective suit
in a map
|
abstract java.lang.String |
evaluateHand(Card[] cards)
Abstract method.
|
protected int[] |
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[] |
getIntFromList(java.util.ArrayList<java.lang.Integer> list)
Converts a list of Integer in an array of primitive type int
|
protected int[] |
intersect(int[] array1,
int[] array2)
Performs the intersection between to arrays in terms of their content
|
protected int[] |
isAce(Card[] cards,
java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
Indicates if the hand is a "Ace"
|
protected int[] |
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[] |
isFlush(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Flush"
|
protected int[] |
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[] |
isFourToAFlush(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Four to a flush"
|
protected int[] |
isFourToAnInsideStraightWithNHighCards(Card[] cards,
int n,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to an inside straight with N high cards"
|
protected int[] |
isFourToAnInsideStraightWithNoHighCards(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to an inside straight with no high cards"
|
protected int[] |
isFourToAnInsideStraightWithOneHighCard(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to an inside straight with one high card"
|
protected int[] |
isFourToAnInsideStraightWithThreeHighCards(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to an inside straight with three high cards"
|
protected int[] |
isFourToAnInsideStraightWithTwoHighCards(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to an inside straight with two high cards"
|
protected int[] |
isFourToAnOutsideStraight(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to an outside straight"
|
protected int[] |
isFourToAStraightFlush(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to a straight flush"
|
protected int[] |
isFourToRoyalFlush(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Four to a royal flush"
|
protected int[] |
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[] |
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[] |
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[] |
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[] |
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[] |
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[] |
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[] |
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[] |
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[] |
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[] |
isNToARoyalFlush(Card[] cards,
int n,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Three to a royal flush"
|
protected int[] |
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[] |
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[] |
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[] |
isRoyalFlush(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Royal flush"
|
protected int[] |
isStraight(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Straight"
|
protected int[] |
isStraightFlush(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Straight flush"
|
protected int[] |
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[] |
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[] |
isThreeToAFlushWithNHighCards(Card[] cards,
int n,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Three to a flush with N high cards"
|
protected int[] |
isThreeToAFlushWithNoHighCards(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Three to a flush with no high cards"
|
protected int[] |
isThreeToAFlushWithOneHighCard(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Three to a flush with one high card"
|
protected int[] |
isThreeToAFlushWithTwoHighCards(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
Indicates if the hand is a "Three to a flush with two high cards"
|
protected int[] |
isThreeToARoyalFlush(Card[] cards,
java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Three to a royal flush"
|
protected int[] |
isThreeToAStraightFlushTypeOne(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Three to a straight flush (type 1)"
|
protected int[] |
isThreeToAStraightFlushTypeThree(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Three to a straight flush (type 3)"
|
protected int[] |
isThreeToAStraightFlushTypeTwo(Card[] cards,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
Indicates if the hand is a "Three to a straight flush (type 2)"
|
protected int[] |
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[] |
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"
|
protected java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> |
populateWithComutations(int[] rt)
Computes all combinations that can end being a candidate straight.
|
public abstract int[] advice(Card[] cards)
cards - Cards to be evaluatedpublic abstract java.lang.String evaluateHand(Card[] cards)
cards - Cards to be evaluatedprotected int[] isThreeToAStraightFlushTypeThree(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isFourToAnInsideStraightWithNoHighCards(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isFourToAnInsideStraightWithOneHighCard(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isThreeToAStraightFlushTypeTwo(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isFourToAnInsideStraightWithTwoHighCards(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isFourToAnInsideStraightWithThreeHighCards(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isFourToAnInsideStraightWithNHighCards(Card[] cards, int n, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredn - Number of high cardscandidateStraights - List of all combinations that could end being a straightprotected int[] isThreeToAStraightFlushTypeOne(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isThreeToAFlushWithOneHighCard(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitprotected int[] 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)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitcardsSameRank - List of all cards of the same rankprotected int[] getHighCards(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] intersect(int[] array1,
int[] array2)
array1 - First array of values to considerarray2 - Second array of values to considerprotected int[] isThreeToAFlushWithNoHighCards(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitprotected int[] isThreeToAFlushWithTwoHighCards(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitprotected int[] isThreeToAFlushWithNHighCards(Card[] cards, int n, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredn - Number of high cardscardsSameSuit - List of all cards of the same suitprotected int[] isFourToAnOutsideStraight(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isThreeToARoyalFlush(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitcandidateStraights - List of all combinations that could end being a straightprotected int[] isNToARoyalFlush(Card[] cards, int n, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredn - Number of gaps existing in the straight candidatecardsSameSuit - List of all cards of the same suitcandidateStraights - List of all combinations that could end being a straightprotected int[] getIntFromList(java.util.ArrayList<java.lang.Integer> list)
list - List of Integer to convertprotected int[] isFourToAFlush(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitprotected int[] isFourToAStraightFlush(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitcandidateStraights - List of all combinations that could end being a straightprotected int[] isFourToRoyalFlush(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitcandidateStraights - List of all combinations that could end being a straightprotected int[] isStraight(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightprotected int[] isFlush(Card[] cards, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcardsSameSuit - List of all cards of the same suitprotected int[] isStraightFlush(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightcardsSameSuit - List of all cards of the same suitprotected int[] isRoyalFlush(Card[] cards, java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> candidateStraights, java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> cardsSameSuit)
cards - Cards to be consideredcandidateStraights - List of all combinations that could end being a straightcardsSameSuit - List of all cards of the same suitprotected int[] isLowPair(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isHighPair(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isThreeOfAKind(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isFullHouse(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isThreeAces(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isNOfAKind(Card[] cards, int n, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredn - Number of cards with the same rankcardsSameRank - List of all cards of the same rankprotected int[] isFourOfAKind(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isTwoPair(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isAKQJUnsuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isQJSuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isKQJUnsuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isJTSuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isQJUnsuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isQTSuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isKQUnsuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isKJUnsuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isKTSuited(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isJackOrQueenOrKing(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected int[] isAce(Card[] cards, java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> cardsSameRank)
cards - Cards to be consideredcardsSameRank - List of all cards of the same rankprotected java.util.HashMap<Card.Ranks,java.util.ArrayList<java.lang.Integer>> computeSameRank(Card[] cards)
cards - Cards to be consideredprotected java.util.HashMap<Card.Suits,java.util.ArrayList<java.lang.Integer>> computeSameSuit(Card[] cards)
cards - Cards to be consideredprotected java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> computeCandidateStraights(Card[] cards)
cards - Cards to be consideredprotected java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> populateWithComutations(int[] rt)
rt - Reorder table addressing the cards under analysis by order of rank