graph-games-proto 0.3.1913__py3-none-any.whl → 0.3.1914__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
@@ -4082,6 +4082,7 @@ def calc_legal_actions3(state_kernal):
4082
4082
  last_action = history[-1] if len(history) > 0 else None
4083
4083
 
4084
4084
  if last_action is None or last_action.legal_action.name == "INITIAL-GOAL-KEEP":
4085
+
4085
4086
  yet_to_make_initial_move = [
4086
4087
  player for player in state_kernal.players if len(player.discard_tray) > 0
4087
4088
  ]
@@ -4108,11 +4109,15 @@ def calc_legal_actions3(state_kernal):
4108
4109
  elif last_action.legal_action.faceup_draw:
4109
4110
  faceup_draw = last_action.legal_action.faceup_draw
4110
4111
  if not state_kernal.carduuid2card[faceup_draw.card_uuid].is_wild:
4111
- return get_follow_up_draw_legal_actions(state_kernal, last_action)
4112
+ legal_actions = get_follow_up_draw_legal_actions(state_kernal, last_action)
4113
+ if legal_actions:
4114
+ return legal_actions
4112
4115
 
4113
4116
  elif last_action.legal_action.draw:
4114
4117
  if last_action.legal_action.draw.quantity == 1:
4115
- return get_follow_up_draw_legal_actions(state_kernal, last_action)
4118
+ legal_actions = get_follow_up_draw_legal_actions(state_kernal, last_action)
4119
+ if legal_actions:
4120
+ return legal_actions
4116
4121
 
4117
4122
  elif last_action.legal_action.draw_discard:
4118
4123
  draw_discard = last_action.legal_action.draw_discard
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.1913
3
+ Version: 0.3.1914
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=acyAIePOzHrVPkMGQ2fdLdav0hlsdjyBaDzgXaMg_pw,192177
3
+ graph_games_proto/fns.py,sha256=Nm-ZCX43EEQ6f8hil0E-7ssB6nqMLIMqhau13QStvdo,192330
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.1913.dist-info/METADATA,sha256=TQrU0Q469uMwO53F4QTXvgQJ8O03FlNQ8BKc51tnWOs,188
7
- graph_games_proto-0.3.1913.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.1913.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.1913.dist-info/RECORD,,
6
+ graph_games_proto-0.3.1914.dist-info/METADATA,sha256=GJyzgKEyzKBPUc8lVJcSmt5KVoC6BsfpbqwXw7tKSY0,188
7
+ graph_games_proto-0.3.1914.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.1914.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.1914.dist-info/RECORD,,