graph-games-proto 0.3.1790__py3-none-any.whl → 0.3.1801__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 +8 -2
- {graph_games_proto-0.3.1790.dist-info → graph_games_proto-0.3.1801.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1790.dist-info → graph_games_proto-0.3.1801.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1790.dist-info → graph_games_proto-0.3.1801.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1790.dist-info → graph_games_proto-0.3.1801.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -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 =
|
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,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=
|
3
|
+
graph_games_proto/fns.py,sha256=yWT9ji-qNVVbk_XfIYAW3d71Ap4-M2bsrGBhkcvNeeM,241991
|
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.
|
7
|
-
graph_games_proto-0.3.
|
8
|
-
graph_games_proto-0.3.
|
9
|
-
graph_games_proto-0.3.
|
6
|
+
graph_games_proto-0.3.1801.dist-info/METADATA,sha256=xXMctUrF8i-Fri3BpgjP_xMDeuXCQp5bS7sQYPKz1O4,188
|
7
|
+
graph_games_proto-0.3.1801.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1801.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1801.dist-info/RECORD,,
|
File without changes
|
File without changes
|