Py-Hanabi/hanabi/constants.py

39 lines
873 B
Python
Raw Normal View History

# constants.py
APP_NAME = 'hanabi-suite'
# some values shared by all (default) hanabi instances
HAND_SIZES = {2: 5, 3: 5, 4: 4, 5: 4, 6: 3}
NUM_STRIKES = 3
2023-05-13 13:06:49 +02:00
COLOR_INITIALS = 'rygbpt'
PLAYER_NAMES = ["Alice", "Bob", "Cathy", "Donald", "Emily", "Frank"]
# DB connection parameters
DEFAULT_DB_NAME = 'hanabi-live'
DEFAULT_DB_USER = 'hanabi'
2023-07-04 18:53:18 +02:00
# hanab.live stuff
2023-07-04 18:53:18 +02:00
# id of no variant
NO_VARIANT_ID = 0
# a map (num_suits, num_dark_suits) -> variant id of a variant on hanab.live fitting that distribution
VARIANT_IDS_STANDARD_DISTRIBUTIONS = {
3: {
0: 18 # 3 Suits
},
4: {
0: 15 # 4 Suits
},
5: {
0: 0, # No Variant
1: 21 # Black (5 Suits)
},
6: {
0: 1, # 6 Suits
1: 2, # Black (6 Suits)
2: 60, # Black & Gray
}
}