easyblackjack
Version 0.1.6
EasyBlackJack est un générateur de mains et une calculatrice de blackjack à pont.
Utilisez le Package Manager PIP pour installer easyBlackjack.
$ pip install EasyBlackjack from easyblackjack import EasyBlackjack EasyBlackjack . generate_cards ()
# Returns two random cards with their value.
# For example:
# {
# 'card_one': {
# 'value': '10',
# 'suit': 'H'
# },
# 'card_two': {
# 'value': '4',
# 'suit': 'S'
# },
# 'points': 14
# } EasyBlackjack . calculate_points ([ 'A' , '6' , '3' ])
# Returns the hand value.
# For example:
# 20 EasyBlackJack est sous licence de la licence universelle Creative Commons Zero V1.0.
Pour plus d'informations, consultez le site Web Creative Commons.