graph-games-proto 0.3.1700__py3-none-any.whl → 0.3.1701__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 +12 -11
- {graph_games_proto-0.3.1700.dist-info → graph_games_proto-0.3.1701.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1700.dist-info → graph_games_proto-0.3.1701.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1700.dist-info → graph_games_proto-0.3.1701.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1700.dist-info → graph_games_proto-0.3.1701.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -2826,17 +2826,6 @@ def getinitialstate(game_config):
|
|
2826
2826
|
deck_1_rng = getrng(8738758)
|
2827
2827
|
nodes = get_nodes(board_config)
|
2828
2828
|
|
2829
|
-
uuid2edge = {}
|
2830
|
-
uuid2path = {}
|
2831
|
-
uuid2segment = {}
|
2832
|
-
|
2833
|
-
for edge in edges:
|
2834
|
-
uuid2edge[edge.uuid] = edge
|
2835
|
-
for path in edge.paths:
|
2836
|
-
uuid2path[path.uuid] = path
|
2837
|
-
for segment in path.segments:
|
2838
|
-
uuid2segment[segment.uuid] = segment
|
2839
|
-
|
2840
2829
|
pieceuuid2piece = {}
|
2841
2830
|
piles = []
|
2842
2831
|
for piece_template in board_config.piece_templates:
|
@@ -2880,6 +2869,18 @@ def getinitialstate(game_config):
|
|
2880
2869
|
edge_tuple = (min(node_1_idx, node_2_idx), max(node_1_idx, node_2_idx))
|
2881
2870
|
edgetuple2uuid[edge_tuple] = edge.uuid
|
2882
2871
|
|
2872
|
+
|
2873
|
+
uuid2edge = {}
|
2874
|
+
uuid2path = {}
|
2875
|
+
uuid2segment = {}
|
2876
|
+
|
2877
|
+
for edge in edges:
|
2878
|
+
uuid2edge[edge.uuid] = edge
|
2879
|
+
for path in edge.paths:
|
2880
|
+
uuid2path[path.uuid] = path
|
2881
|
+
for segment in path.segments:
|
2882
|
+
uuid2segment[segment.uuid] = segment
|
2883
|
+
|
2883
2884
|
bonuses = game_config.fig.board_config.bonuses
|
2884
2885
|
bonusuuid2bonusidx = {bonus.uuid: idx for idx, bonus in enumerate(bonuses)}
|
2885
2886
|
bonus_statuses = [
|
@@ -1,9 +1,9 @@
|
|
1
1
|
graph_games_proto/__init__.py,sha256=LOpk1mGZxPWMRGrPNoXDENn7JPG6rNfhieehItW8bEA,881
|
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=VhyabYcA34Oo4QNUHLPVXCnf050jj3PI3pP1IYz6-aU,264543
|
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.1701.dist-info/METADATA,sha256=72HOO9KiT8Eg17THvFR0FNTXLo1WL2JjD_6FN64m_gE,188
|
7
|
+
graph_games_proto-0.3.1701.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1701.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1701.dist-info/RECORD,,
|
File without changes
|
File without changes
|