enums
enums
CoinType
Bases: Enum
value_in_gold
staticmethod
Calculate the combined value in gold pieces based on the coin amounts, rounded up to the nearest integer.
Parameters:
-
coin_amounts
(dict
) –A dictionary with CoinType as key and quantity of that type as value.
Returns:
-
int
(int
) –The total value in gold pieces, rounded up to the nearest integer.
Examples: