graph-games-proto 0.3.2039__py3-none-any.whl → 0.3.2041__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
@@ -2057,12 +2057,13 @@ def init_state_kernel(**kwargs):
2057
2057
  rng=rng,
2058
2058
  game_config=game_config,
2059
2059
  edges=edges,
2060
- nodes=kwargs.get('nodes'),
2061
- decks=kwargs.get('decks'),
2062
- piles=kwargs.get('piles'),
2060
+ nodes=kwargs.get('nodes', []),
2061
+ regions=kwargs.get('regions', []),
2062
+ decks=kwargs.get('decks', []),
2063
+ piles=kwargs.get('piles', []),
2063
2064
  players=kwargs.get('players'),
2064
2065
  player_idxs=kwargs.get('player_idxs'),
2065
- history=kwargs.get('history'),
2066
+ history=kwargs.get('history', []),
2066
2067
  idx2path=idx2path,
2067
2068
  edgeuuid2idx=edgeuuid2idx,
2068
2069
  carduuid2card=carduuid2card,
@@ -2071,9 +2072,9 @@ def init_state_kernel(**kwargs):
2071
2072
  nodeuuid2idx=nodeuuid2idx,
2072
2073
  carduuid2deckidx=carduuid2deckidx,
2073
2074
  bonusuuid2bonusidx=bonusuuid2bonusidx,
2074
- starting_decks=kwargs.get('starting_decks'),
2075
- starting_piles=kwargs.get('starting_piles'),
2076
- goals=kwargs.get('goals'),
2075
+ starting_decks=kwargs.get('starting_decks', []),
2076
+ starting_piles=kwargs.get('starting_piles', []),
2077
+ goals=kwargs.get('goals', []),
2077
2078
  player_graphs_3=player_graphs_3,
2078
2079
  )
2079
2080
 
@@ -2353,7 +2354,7 @@ class PublicState(PClass):
2353
2354
  goals = field(type=list) # List[Goal]
2354
2355
  nodes = field(type=list) # List[Node]
2355
2356
  edges = field(type=list) # List[BiEdge]
2356
- regions = field(type=list, initial=[])
2357
+ regions = field(type=list) # List[Region]
2357
2358
  decks = field(type=list) # List[PublicDeck]
2358
2359
  piles = field(type=list) # List[Pile]
2359
2360
  player_idxs = field(type=list) # List[int]
@@ -4561,10 +4562,10 @@ def getpublicstate(s):
4561
4562
  nodes=s.kernel.nodes,
4562
4563
  edges=s.kernel.edges,
4563
4564
  regions=s.kernel.regions,
4564
- decks=[getpublicdeck(s, deck) for deck in s.decks],
4565
+ decks=[getpublicdeck(s, deck) for deck in s.kernel.decks],
4565
4566
  piles=s.kernel.piles,
4566
4567
  player_idxs=s.kernel.player_idxs,
4567
- players=[getpublicplayer(s, p) for p in s.players],
4568
+ players=[getpublicplayer(s, p) for p in s.kernel.players],
4568
4569
  last_to_play=s.kernel.last_to_play,
4569
4570
  winners=s.kernel.winners,
4570
4571
  terminal=isterminal(s),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.2039
3
+ Version: 0.3.2041
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=xzSeQYeahx_uSrtHTJe39hKi3Yr62nbP8TqSfLI8hqo,193768
3
+ graph_games_proto/fns.py,sha256=YkO5Oc7sQ1US1MFTPnD0U224EpQoEmYHYdSnT--CAsU,193856
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.2039.dist-info/METADATA,sha256=grOQHZLAL8ZQuABz0vYugwNOAcBE15jFo58975fsJi0,188
7
- graph_games_proto-0.3.2039.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.2039.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.2039.dist-info/RECORD,,
6
+ graph_games_proto-0.3.2041.dist-info/METADATA,sha256=nhj5ROM4GtYyfelveLSwaXeH_XcQWKcmKvPGzQq_4iY,188
7
+ graph_games_proto-0.3.2041.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.2041.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.2041.dist-info/RECORD,,