graph-games-proto 0.3.1826__py3-none-any.whl → 0.3.1828__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 +2 -5
- {graph_games_proto-0.3.1826.dist-info → graph_games_proto-0.3.1828.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1826.dist-info → graph_games_proto-0.3.1828.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1826.dist-info → graph_games_proto-0.3.1828.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1826.dist-info → graph_games_proto-0.3.1828.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -1678,7 +1678,7 @@ class LegalAction(PClass):
|
|
1678
1678
|
draw_discard = field(type=(LegalActionDrawDiscard, type(None)), initial=None) # LegalActionDrawDiscard
|
1679
1679
|
faceup_draw = field(type=(LegalActionFaceupDraw, type(None)), initial=None) # LegalActionFaceupDraw
|
1680
1680
|
move_pieces_to_path = field(type=(LegalActionMovePiecesToPath, type(None)), initial=None) # LegalActionMovePiecesToPath
|
1681
|
-
auto_preferred = field(type=bool) # bool
|
1681
|
+
auto_preferred = field(type=bool, initial=False) # bool
|
1682
1682
|
def get_default_action(self, state):
|
1683
1683
|
submitted_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
1684
1684
|
if self.discard:
|
@@ -3889,10 +3889,7 @@ def append_to_legal_actions(game, legal_action):
|
|
3889
3889
|
def default_accept_action(game, action):
|
3890
3890
|
# Returns true if action.legal_action is found in game.legal_actions_2
|
3891
3891
|
# The comparision is by value, not by reference
|
3892
|
-
if not game or not action:
|
3893
|
-
return False
|
3894
|
-
|
3895
|
-
if not action.legal_action:
|
3892
|
+
if not game or not action or not action.legal_action:
|
3896
3893
|
return False
|
3897
3894
|
|
3898
3895
|
# Check if "action.move_pieces_to_path" is not None
|
@@ -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=wLEDR91BekMRfWv76yfMskb20ibmE_HhEQgBDeb4J9w,242116
|
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.1828.dist-info/METADATA,sha256=QB2JoMsBxFNhP1EbzRqVxAOdWsVluTNgatFPqT-3oIM,188
|
7
|
+
graph_games_proto-0.3.1828.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1828.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1828.dist-info/RECORD,,
|
File without changes
|
File without changes
|