graph-games-proto 0.3.1780__py3-none-any.whl → 0.3.1781__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 +38 -34
- {graph_games_proto-0.3.1780.dist-info → graph_games_proto-0.3.1781.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1780.dist-info → graph_games_proto-0.3.1781.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1780.dist-info → graph_games_proto-0.3.1781.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1780.dist-info → graph_games_proto-0.3.1781.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -6628,7 +6628,8 @@ DEFAULT_LEGAL_ACTIONS_HOOK = """def handler(game, player_idx):
|
|
6628
6628
|
allotted_seconds = DEFAULT_ALLOTTED_SECONDS
|
6629
6629
|
allotted_since_action_idx = len(game.history) - 1
|
6630
6630
|
|
6631
|
-
game
|
6631
|
+
if len(game.decks[1].facedown_stack) >= 1:
|
6632
|
+
game = append_to_legal_actions(
|
6632
6633
|
game,
|
6633
6634
|
LegalAction(
|
6634
6635
|
player_idx=player_idx,
|
@@ -6644,53 +6645,56 @@ DEFAULT_LEGAL_ACTIONS_HOOK = """def handler(game, player_idx):
|
|
6644
6645
|
)
|
6645
6646
|
)
|
6646
6647
|
|
6647
|
-
game
|
6648
|
-
game
|
6649
|
-
|
6650
|
-
|
6651
|
-
|
6652
|
-
|
6653
|
-
|
6654
|
-
|
6655
|
-
|
6656
|
-
|
6657
|
-
|
6658
|
-
|
6659
|
-
|
6660
|
-
|
6661
|
-
)
|
6662
|
-
|
6663
|
-
game = append_to_legal_actions(
|
6664
|
-
game,
|
6665
|
-
LegalAction(
|
6666
|
-
player_idx=player_idx,
|
6667
|
-
name="DRAW-DOUBLE",
|
6668
|
-
instruction="draw 2 units",
|
6669
|
-
allotted_seconds=allotted_seconds,
|
6670
|
-
allotted_since_action_idx=allotted_since_action_idx,
|
6671
|
-
draw=LegalActionDraw(
|
6672
|
-
deck_idx=0,
|
6673
|
-
quantity=2,
|
6648
|
+
if len(game.decks[0].facedown_stack) >= 1:
|
6649
|
+
game = append_to_legal_actions(
|
6650
|
+
game,
|
6651
|
+
LegalAction(
|
6652
|
+
auto_preferred=True,
|
6653
|
+
player_idx=player_idx,
|
6654
|
+
name="DRAW",
|
6655
|
+
instruction="draw a unit",
|
6656
|
+
allotted_seconds=allotted_seconds,
|
6657
|
+
allotted_since_action_idx=allotted_since_action_idx,
|
6658
|
+
draw=LegalActionDraw(
|
6659
|
+
deck_idx=0,
|
6660
|
+
quantity=1,
|
6661
|
+
)
|
6674
6662
|
)
|
6675
6663
|
)
|
6676
|
-
)
|
6677
6664
|
|
6678
|
-
|
6665
|
+
if len(game.decks[0].facedown_stack) >= 2:
|
6679
6666
|
game = append_to_legal_actions(
|
6680
6667
|
game,
|
6681
6668
|
LegalAction(
|
6682
6669
|
player_idx=player_idx,
|
6683
|
-
name="
|
6684
|
-
instruction="draw
|
6670
|
+
name="DRAW-DOUBLE",
|
6671
|
+
instruction="draw 2 units",
|
6685
6672
|
allotted_seconds=allotted_seconds,
|
6686
6673
|
allotted_since_action_idx=allotted_since_action_idx,
|
6687
|
-
|
6674
|
+
draw=LegalActionDraw(
|
6688
6675
|
deck_idx=0,
|
6689
|
-
|
6676
|
+
quantity=2,
|
6690
6677
|
)
|
6691
6678
|
)
|
6692
6679
|
)
|
6693
6680
|
|
6681
|
+
for card_uuid in game.decks[0].faceup_spots:
|
6682
|
+
if card_uuid:
|
6683
|
+
game = append_to_legal_actions(
|
6684
|
+
game,
|
6685
|
+
LegalAction(
|
6686
|
+
player_idx=player_idx,
|
6687
|
+
name="FACEUP-DRAW",
|
6688
|
+
instruction="draw a faceup unit",
|
6689
|
+
allotted_seconds=allotted_seconds,
|
6690
|
+
allotted_since_action_idx=allotted_since_action_idx,
|
6691
|
+
faceup_draw=LegalActionFaceupDraw(
|
6692
|
+
deck_idx=0,
|
6693
|
+
card_uuid=card_uuid,
|
6694
|
+
)
|
6695
|
+
)
|
6696
|
+
)
|
6697
|
+
|
6694
6698
|
game = append_all_to_legal_actions(
|
6695
6699
|
game,
|
6696
6700
|
get_legal_actions_for_paths(game, player_idx),
|
@@ -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=q80TzVkBDwgTbbaouhJJQtfFqysgoQT1T53xUFc3GN0,240705
|
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.1781.dist-info/METADATA,sha256=bKw7-SvRTUBQoSPfBj7uniqcYSfcFO2DJD7Uak6mvHI,188
|
7
|
+
graph_games_proto-0.3.1781.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1781.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1781.dist-info/RECORD,,
|
File without changes
|
File without changes
|