graph-games-proto 0.3.1772__py3-none-any.whl → 0.3.1780__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- graph_games_proto/fns.py +6 -3
- {graph_games_proto-0.3.1772.dist-info → graph_games_proto-0.3.1780.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1772.dist-info → graph_games_proto-0.3.1780.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1772.dist-info → graph_games_proto-0.3.1780.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1772.dist-info → graph_games_proto-0.3.1780.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -15,8 +15,8 @@ from functools import cmp_to_key
|
|
15
15
|
from itertools import combinations as itertools_combinations, chain
|
16
16
|
from collections import deque
|
17
17
|
|
18
|
-
DEFAULT_ALLOTTED_SECONDS = 60
|
19
|
-
INITIAL_ALLOTTED_SECONDS = 120
|
18
|
+
DEFAULT_ALLOTTED_SECONDS = 5 #60
|
19
|
+
INITIAL_ALLOTTED_SECONDS = 20 #120
|
20
20
|
|
21
21
|
class NoAction(PClass):
|
22
22
|
pass
|
@@ -3388,8 +3388,11 @@ def handle_faceup_draw_action(game, action):
|
|
3388
3388
|
spot_idx = next((i for i, card_uuid in enumerate(deck.faceup_spots) if card_uuid == faceup_draw.card_uuid), None)
|
3389
3389
|
drawn_card = deck.faceup_spots[spot_idx] if spot_idx is not None else None
|
3390
3390
|
player.cards.append(drawn_card)
|
3391
|
-
|
3391
|
+
|
3392
|
+
if len(deck.facedown_stack) > 0:
|
3392
3393
|
deck.faceup_spots[spot_idx] = deck.facedown_stack.pop()
|
3394
|
+
else:
|
3395
|
+
deck.faceup_spots[spot_idx] = None
|
3393
3396
|
|
3394
3397
|
game = ensure_faceup_spots_valid(game)
|
3395
3398
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
graph_games_proto/__init__.py,sha256=O5XjRfe3DlxbJn4zezDvvy7cXvL4IzIRPZCL3Y-n7s8,776
|
2
2
|
graph_games_proto/all_types.py,sha256=IpbwftEcHS5Ewz-saFNk0lO9FvcbuHG36odRTayCXUk,54911
|
3
|
-
graph_games_proto/fns.py,sha256=
|
3
|
+
graph_games_proto/fns.py,sha256=8zJq6ad-wfhCJ0rbpVFy5Jo2zP3JgAcKqaEeDM3o7V0,240366
|
4
4
|
graph_games_proto/main.py,sha256=fj2U7KcwrpZtuUhjOX5yVxY18LZvvsxDFYZ_S5mxe04,145
|
5
5
|
graph_games_proto/state.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
graph_games_proto-0.3.
|
7
|
-
graph_games_proto-0.3.
|
8
|
-
graph_games_proto-0.3.
|
9
|
-
graph_games_proto-0.3.
|
6
|
+
graph_games_proto-0.3.1780.dist-info/METADATA,sha256=8EOwV5o7T3WlRFeXfNQj1wpoyiGXH8uapKl-CE0FXUA,188
|
7
|
+
graph_games_proto-0.3.1780.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1780.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1780.dist-info/RECORD,,
|
File without changes
|
File without changes
|