Package javatro.core
Class Score
java.lang.Object
javatro.core.Score
Contains the algorithm for calculating the final score and played hand.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetScore(PokerHand pokerHand, List<Card> playedCardList, HeldJokers heldJokers) Returns the score of the played hand by calculating the value of the hand.
-
Field Details
-
playedCardsList
-
jokerList
-
totalChips
public double totalChips -
totalMultiplier
public double totalMultiplier
-
-
Constructor Details
-
Score
public Score()Default constructor -
Score
Creates a new score calculator with the given boss type.- Parameters:
bossType- The boss type for this round
-
-
Method Details
-
getScore
public long getScore(PokerHand pokerHand, List<Card> playedCardList, HeldJokers heldJokers) throws JavatroException Returns the score of the played hand by calculating the value of the hand.- Throws:
JavatroException
-