graph-games-proto 0.3.1711__py3-none-any.whl → 0.3.1713__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 CHANGED
@@ -1514,7 +1514,7 @@ class ActionMovePiecesToPathOptional(PClass):
1514
1514
 
1515
1515
 
1516
1516
  class PublicLegalActionMovePiecesToPath(PClass):
1517
- path_idx = field(type=str)
1517
+ path_idx = field(type=int)
1518
1518
  def __todict__(self):
1519
1519
  return {
1520
1520
  "path_idx": self.path_idx,
@@ -1527,7 +1527,7 @@ class PublicLegalActionMovePiecesToPath(PClass):
1527
1527
 
1528
1528
 
1529
1529
  class LegalActionMovePiecesToPath(PClass):
1530
- path_idx = field(type=str)
1530
+ path_idx = field(type=int)
1531
1531
  default = field(type=ActionMovePiecesToPathOptional) # Optional[MovePiecesToPathAction]
1532
1532
  def get_public(self, state):
1533
1533
  return PublicLegalActionMovePiecesToPath(
@@ -2880,7 +2880,7 @@ def getinitialstate(game_config):
2880
2880
  for edge in edges:
2881
2881
  uuid2edge[edge.uuid] = edge
2882
2882
  for path in edge.paths:
2883
- idx2path[path.uuid] = path
2883
+ idx2path[path.idx] = path
2884
2884
  for segment in path.segments:
2885
2885
  uuid2segment[segment.uuid] = segment
2886
2886
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.1711
3
+ Version: 0.3.1713
4
4
  Requires-Dist: multipledispatch==1.0.0
5
5
  Requires-Dist: pyrsistent==0.20.0
6
6
  Requires-Dist: numpy==2.2.4
@@ -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=h1o-uA304yMKqLSgLgFSRrpWSkvmCLY8EbQwi1JO-7g,264059
3
+ graph_games_proto/fns.py,sha256=FFXT6ToYa3HrYy6V35uIoUfAqLz4tpzb_z6-WNlmpck,264058
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.1711.dist-info/METADATA,sha256=FskHRI_ITMpankcXxTJICHSE6GyrH0bcNGa-m7HwV_I,188
7
- graph_games_proto-0.3.1711.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.1711.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.1711.dist-info/RECORD,,
6
+ graph_games_proto-0.3.1713.dist-info/METADATA,sha256=M554_KKebiPmsK9ZEyxdReEXsePlUrR1OI_oDPW4bUY,188
7
+ graph_games_proto-0.3.1713.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.1713.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.1713.dist-info/RECORD,,