graph-games-proto 0.3.1714__py3-none-any.whl → 0.3.1721__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 +4 -2
- {graph_games_proto-0.3.1714.dist-info → graph_games_proto-0.3.1721.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1714.dist-info → graph_games_proto-0.3.1721.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1714.dist-info → graph_games_proto-0.3.1721.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1714.dist-info → graph_games_proto-0.3.1721.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -2244,7 +2244,7 @@ class State(PClass):
|
|
2244
2244
|
def __fromdict__(d):
|
2245
2245
|
return State(
|
2246
2246
|
uuid2edge={k: BiEdge.__fromdict__(v) for k, v in d["uuid2edge"].items()},
|
2247
|
-
idx2path={k: Path2.__fromdict__(v) for k, v in d
|
2247
|
+
idx2path={k: Path2.__fromdict__(v) for k, v in d["idx2path"].items()},
|
2248
2248
|
uuid2segment={k: Segment2.__fromdict__(v) for k, v in d["uuid2segment"].items()},
|
2249
2249
|
pieceuuid2piece={k: Piece.__fromdict__(v) for k, v in d["pieceuuid2piece"].items()},
|
2250
2250
|
carduuid2card={k: Card.__fromdict__(v) for k, v in d["carduuid2card"].items()},
|
@@ -3884,8 +3884,10 @@ def get_total_path_count(game):
|
|
3884
3884
|
|
3885
3885
|
|
3886
3886
|
def get_legal_actions_for_path(game, player_idx, path_idx):
|
3887
|
-
|
3887
|
+
print("****************************** get_legal_actions_for_path 1", path_idx)
|
3888
|
+
if path_idx not in game.idx2path.keys():
|
3888
3889
|
return []
|
3890
|
+
print("****************************** get_legal_actions_for_path 2", path_idx)
|
3889
3891
|
|
3890
3892
|
if not is_path_open_to_player(game, path_idx, player_idx):
|
3891
3893
|
return []
|
@@ -1,9 +1,9 @@
|
|
1
1
|
graph_games_proto/__init__.py,sha256=sI31dBPkrs_UHYsuc1Q2sdYkJfpVPKpB--FuqghA208,864
|
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=fBryb6E_68AbYZPai4x81IAAlmg0w9_kzrw6oAtdv0Q,264231
|
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.1721.dist-info/METADATA,sha256=d88zqvMJS8zGDJ7KtRG-XrDv_hqCPUopvvoHq6aZ9qs,188
|
7
|
+
graph_games_proto-0.3.1721.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1721.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1721.dist-info/RECORD,,
|
File without changes
|
File without changes
|