graph-games-proto 0.3.1764__py3-none-any.whl → 0.3.1766__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 +17 -1
- {graph_games_proto-0.3.1764.dist-info → graph_games_proto-0.3.1766.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1764.dist-info → graph_games_proto-0.3.1766.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1764.dist-info → graph_games_proto-0.3.1766.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1764.dist-info → graph_games_proto-0.3.1766.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -3258,7 +3258,8 @@ def handle_draw_action(game, action):
|
|
3258
3258
|
)
|
3259
3259
|
|
3260
3260
|
# TODO: extract this out to user-defined function/hook
|
3261
|
-
|
3261
|
+
if draw.quantity == 1:
|
3262
|
+
game = append_follow_up_draw_legal_actions(game, action)
|
3262
3263
|
|
3263
3264
|
return game
|
3264
3265
|
|
@@ -6651,6 +6652,21 @@ DEFAULT_LEGAL_ACTIONS_HOOK = """def handler(game, player_idx):
|
|
6651
6652
|
)
|
6652
6653
|
)
|
6653
6654
|
|
6655
|
+
game = append_to_legal_actions(
|
6656
|
+
game,
|
6657
|
+
LegalAction(
|
6658
|
+
player_idx=player_idx,
|
6659
|
+
name="DRAW-DOUBLE",
|
6660
|
+
instruction="draw 2 units",
|
6661
|
+
allotted_seconds=allotted_seconds,
|
6662
|
+
allotted_since_action_idx=allotted_since_action_idx,
|
6663
|
+
draw=LegalActionDraw(
|
6664
|
+
deck_idx=0,
|
6665
|
+
quantity=2,
|
6666
|
+
)
|
6667
|
+
)
|
6668
|
+
)
|
6669
|
+
|
6654
6670
|
for card_uuid in game.decks[0].faceup_spots:
|
6655
6671
|
game = append_to_legal_actions(
|
6656
6672
|
game,
|
@@ -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=5GV9Sao6aPxDb78XlawU2xd1JZ6Xk2LzjkkboAvMPig,240061
|
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.1766.dist-info/METADATA,sha256=Tjlx9BrhSy0bXXNDsp9sXVjk64YfA56ZurIHY4rn0oc,188
|
7
|
+
graph_games_proto-0.3.1766.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1766.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1766.dist-info/RECORD,,
|
File without changes
|
File without changes
|