graph-games-proto 0.3.2049__py3-none-any.whl → 0.3.2050__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
@@ -3288,8 +3288,9 @@ def handle_move_bonus_cards(kernel, action):
3288
3288
 
3289
3289
  # Take a random walk on the player's graph. A node can be visiting more than once, but an edge cannot be visited more than once.
3290
3290
  # Example graph: PlayerGraph(player_idx=0, neighbors=[[], [], [], [], [], [], [], [], [], [], [30]
3291
- def random_player_graph_walk(game, player_idx):
3292
- player_graph = game.player_graphs[player_idx]
3291
+ @dispatch(StateKernel, int)
3292
+ def random_player_graph_walk(kernel, player_idx):
3293
+ player_graph = kernel.player_graphs_3[player_idx]
3293
3294
  nodes_indices_with_neighbors = [i for i, neighbors in enumerate(player_graph.neighbors) if neighbors]
3294
3295
 
3295
3296
  if not nodes_indices_with_neighbors:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.2049
3
+ Version: 0.3.2050
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=_EVQR-51XehfH45XZlba1WPdx3omS3Gm1nTwrgGyn2Q,667
2
2
  graph_games_proto/all_types.py,sha256=IpbwftEcHS5Ewz-saFNk0lO9FvcbuHG36odRTayCXUk,54911
3
- graph_games_proto/fns.py,sha256=XmmV1LeHVFb124gHfvHwivUnO8B231kEfpFYPZ746zY,193928
3
+ graph_games_proto/fns.py,sha256=4NumIZC9NJ50Du5H9pZrwMUh4kR1wETerB6-jdzcCsI,193962
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.2049.dist-info/METADATA,sha256=Hs1pmJOZluWebeiniLQ1oUCQFlU4M43oPIO-oeHiukM,188
7
- graph_games_proto-0.3.2049.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.2049.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.2049.dist-info/RECORD,,
6
+ graph_games_proto-0.3.2050.dist-info/METADATA,sha256=MKHNdbTExHzQIe9VIZA4Q_ONiS--ccywR06QtE6MGkA,188
7
+ graph_games_proto-0.3.2050.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.2050.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.2050.dist-info/RECORD,,