graph-games-proto 0.3.1919__py3-none-any.whl → 0.3.1921__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 +3 -3
- {graph_games_proto-0.3.1919.dist-info → graph_games_proto-0.3.1921.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.1919.dist-info → graph_games_proto-0.3.1921.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.1919.dist-info → graph_games_proto-0.3.1921.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.1919.dist-info → graph_games_proto-0.3.1921.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -4005,7 +4005,7 @@ def get_sample_actionclaimpath(game, player_idx, path_idx):
|
|
4005
4005
|
|
4006
4006
|
def get_sample_path_fulfillment(game, player_idx, path_idx):
|
4007
4007
|
path = game.idx2path[path_idx]
|
4008
|
-
remaining_card_uuids = [card_uuid for card_uuid in game.players[player_idx].cards if game.
|
4008
|
+
remaining_card_uuids = [card_uuid for card_uuid in game.players[player_idx].cards if game.carduuid2card[card_uuid].deck_idx == 0]
|
4009
4009
|
remaining_pieces = [
|
4010
4010
|
piece_uuid
|
4011
4011
|
for piece_uuid in game.players[player_idx].pieces
|
@@ -4463,7 +4463,7 @@ def getpublicdeck(s, d):
|
|
4463
4463
|
def getpublicplayer(s, p):
|
4464
4464
|
deck_counts = [0 for _ in s.game_config.fig.board_config.deks]
|
4465
4465
|
for card in p.cards:
|
4466
|
-
deck_counts[s.carduuid2card[card].deck_idx] += 1
|
4466
|
+
deck_counts[s.kernel.carduuid2card[card].deck_idx] += 1
|
4467
4467
|
piece_template_counts = [0 for _ in s.game_config.fig.board_config.piece_templates]
|
4468
4468
|
for piece_uuid in p.pieces:
|
4469
4469
|
piece_template_counts[s.pieceuuid2piece[piece_uuid].piece_template_idx] += 1
|
@@ -4674,7 +4674,7 @@ def get_player_graph(s, player_idx):
|
|
4674
4674
|
def get_goals(s, player_idx):
|
4675
4675
|
player = s.players[player_idx]
|
4676
4676
|
goaluuid2goal = {goal.uuid: goal for goal in s.goals}
|
4677
|
-
goal_uuids = [s.carduuid2card[card_uuid].goal_uuid for card_uuid in player.cards if s.carduuid2card[card_uuid].goal_uuid]
|
4677
|
+
goal_uuids = [s.kernel.carduuid2card[card_uuid].goal_uuid for card_uuid in player.cards if s.kernel.carduuid2card[card_uuid].goal_uuid]
|
4678
4678
|
return [
|
4679
4679
|
goaluuid2goal[goal_uuid] for goal_uuid in goal_uuids if goal_uuid in goaluuid2goal
|
4680
4680
|
]
|
@@ -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=
|
3
|
+
graph_games_proto/fns.py,sha256=3ftG32Jj6VYbps-zx4G7Tnhz-5fuQI11LI4CxKXLRx4,191629
|
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.1921.dist-info/METADATA,sha256=vvanEMQy5X38A-2HFLa1eyFwxEBkAefPzZ0qmYN6IU8,188
|
7
|
+
graph_games_proto-0.3.1921.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.1921.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.1921.dist-info/RECORD,,
|
File without changes
|
File without changes
|