graph-games-proto 0.3.1888__py3-none-any.whl → 0.3.1890__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
@@ -4400,6 +4400,10 @@ def getfirstplayeridx(rng, num_players):
4400
4400
  return rng.randint(0, num_players-1)
4401
4401
 
4402
4402
 
4403
+ def get_legal_actions3(s, player_idx):
4404
+ return [a for a in s.legal_actions_3 if a.player_idx == player_idx]
4405
+
4406
+
4403
4407
  @dispatch(State, int)
4404
4408
  def get_legal_actions(s, player_idx):
4405
4409
  return [a for a in s.legal_actions_2 if a.player_idx == player_idx]
@@ -4894,6 +4898,7 @@ def getprivatestate(s, player_idx):
4894
4898
  player_score=getprivateplayerscore(s, s.player_scores[player_idx]),
4895
4899
  player=s.players[player_idx],
4896
4900
  legal_actions_2 = get_legal_actions(s, player_idx),
4901
+ legal_actions_3 = get_legal_actions3(s, player_idx),
4897
4902
  goal_completions=get_goal_completions(s, player_idx),
4898
4903
  )
4899
4904
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.1888
3
+ Version: 0.3.1890
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=w4Hkn6z0bUuZeInMvSbbNpFjzAlp1UgZsamFBsuN2to,181960
3
+ graph_games_proto/fns.py,sha256=Ps1cEaMbaSBXIJKr0xsc8wyu4CJdaTrdKWtVJ8cH10s,182134
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.1888.dist-info/METADATA,sha256=NL9gcA4L8dn0uIdH-6uDG3gsDX6p_e2sx_sUyeCFm0w,188
7
- graph_games_proto-0.3.1888.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.1888.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.1888.dist-info/RECORD,,
6
+ graph_games_proto-0.3.1890.dist-info/METADATA,sha256=XXk7ZSs21Gx4oN-AWXTiYNZZiDL6aTg8dWlt6RlWsuk,188
7
+ graph_games_proto-0.3.1890.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.1890.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.1890.dist-info/RECORD,,