2023-03-18 01:17:32 +01:00
|
|
|
# constants.py
|
|
|
|
|
2023-07-04 22:02:25 +02:00
|
|
|
APP_NAME = 'hanabi-suite'
|
2023-03-18 01:17:32 +01:00
|
|
|
|
|
|
|
# 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'
|
2023-03-18 01:17:32 +01:00
|
|
|
PLAYER_NAMES = ["Alice", "Bob", "Cathy", "Donald", "Emily", "Frank"]
|
|
|
|
|
|
|
|
|
2023-07-04 18:53:18 +02:00
|
|
|
# hanab.live stuff
|
2023-03-18 01:17:32 +01:00
|
|
|
|
2023-07-04 18:53:18 +02:00
|
|
|
# id of no variant
|
2023-03-18 01:17:32 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|