graph-games-proto 0.3.1790__py3-none-any.whl → 0.3.1802__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
@@ -15,8 +15,8 @@ from functools import cmp_to_key
15
15
  from itertools import combinations as itertools_combinations, chain
16
16
  from collections import deque
17
17
 
18
- DEFAULT_ALLOTTED_SECONDS = 10 #60
19
- INITIAL_ALLOTTED_SECONDS = 20 #120
18
+ DEFAULT_ALLOTTED_SECONDS = 60
19
+ INITIAL_ALLOTTED_SECONDS = 120
20
20
 
21
21
  class NoAction(PClass):
22
22
  pass
@@ -3235,10 +3235,17 @@ def default_after_accept_action(game, action):
3235
3235
 
3236
3236
  def recycle_decks_if_needed(game):
3237
3237
  for deck_idx in range(len(game.decks)):
3238
+ print("recycle_decks_if_needed for deck_idx =", deck_idx)
3238
3239
  game = recycle_if_needed(game, deck_idx)
3239
3240
  return game
3240
3241
 
3241
3242
 
3243
+ def replenish_decks_if_needed(game):
3244
+ for deck_idx in range(len(game.decks)):
3245
+ game = replenish_faceup_if_needed(game, deck_idx)
3246
+ return game
3247
+
3248
+
3242
3249
  def replenish_faceup_spot_if_needed(game, deck_idx, spot_idx):
3243
3250
  deck = game.decks[deck_idx]
3244
3251
 
@@ -3629,7 +3636,7 @@ def handle_move_pieces_to_path_action(game, action):
3629
3636
  game.decks[game.carduuid2card[card_uuid].deck_idx].discard.append(card_uuid)
3630
3637
 
3631
3638
  game = recycle_decks_if_needed(game)
3632
- game = replenish_faceup_if_needed(game)
3639
+ game = replenish_decks_if_needed(game)
3633
3640
  game = game.set(players=game.players)
3634
3641
  game = game.set(idx2path=game.idx2path)
3635
3642
  game = game.set(player_graphs=calc_player_graphs(game)) #
@@ -4463,7 +4470,6 @@ def getnextaction(s, policy):
4463
4470
 
4464
4471
 
4465
4472
  def getpublicplayerscore(s, player_score):
4466
- print("*****************321 player_score: ", player_score)
4467
4473
  if s.terminal:
4468
4474
  # Join the arrays of public and private items
4469
4475
  items = player_score.public_items + player_score.private_items
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_games_proto
3
- Version: 0.3.1790
3
+ Version: 0.3.1802
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=O5XjRfe3DlxbJn4zezDvvy7cXvL4IzIRPZCL3Y-n7s8,776
2
2
  graph_games_proto/all_types.py,sha256=IpbwftEcHS5Ewz-saFNk0lO9FvcbuHG36odRTayCXUk,54911
3
- graph_games_proto/fns.py,sha256=3kNaljeFJgh2FJrUfo8B8fUlIyT8D9jA0t36c7Z1_2Y,241832
3
+ graph_games_proto/fns.py,sha256=H2is5w_JV0jaBI17Xvpkj9HEAs62B7jC4x9EBwYKJiU,241983
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.1790.dist-info/METADATA,sha256=PR9TvSxR9-K7FpaGHcRGxlL3yh7w_MM71k7QdHKVKCc,188
7
- graph_games_proto-0.3.1790.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- graph_games_proto-0.3.1790.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
- graph_games_proto-0.3.1790.dist-info/RECORD,,
6
+ graph_games_proto-0.3.1802.dist-info/METADATA,sha256=-cSB_NKPyGGFS1gt87wPi8_Za_kNmG7WuGgrpqQaa0Y,188
7
+ graph_games_proto-0.3.1802.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ graph_games_proto-0.3.1802.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
9
+ graph_games_proto-0.3.1802.dist-info/RECORD,,