easyblackjack
Version 0.1.6
EasyBlackjack adalah generator dan kalkulator blackjack tunggal.
Gunakan PIP Paket untuk menginstal 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 dilisensikan berdasarkan ketentuan Lisensi Universal Creative Commons Zero V1.0.
Untuk informasi lebih lanjut, lihat situs web Creative Commons.