graph-games-proto 0.3.2043__py3-none-any.whl → 0.3.2045__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 +4 -3
- {graph_games_proto-0.3.2043.dist-info → graph_games_proto-0.3.2045.dist-info}/METADATA +1 -1
- {graph_games_proto-0.3.2043.dist-info → graph_games_proto-0.3.2045.dist-info}/RECORD +5 -5
- {graph_games_proto-0.3.2043.dist-info → graph_games_proto-0.3.2045.dist-info}/WHEEL +0 -0
- {graph_games_proto-0.3.2043.dist-info → graph_games_proto-0.3.2045.dist-info}/top_level.txt +0 -0
graph_games_proto/fns.py
CHANGED
@@ -4434,7 +4434,6 @@ def get_player_max_allotted_time(s, player_idx):
|
|
4434
4434
|
return None
|
4435
4435
|
|
4436
4436
|
|
4437
|
-
@dispatch(State, AllottedTime)
|
4438
4437
|
def get_deadline(s, max_allotted_time):
|
4439
4438
|
if not max_allotted_time:
|
4440
4439
|
return None
|
@@ -4457,12 +4456,13 @@ def get_deadline(s, max_allotted_time):
|
|
4457
4456
|
)
|
4458
4457
|
|
4459
4458
|
|
4459
|
+
@dispatch(State)
|
4460
4460
|
def get_deadlines(s):
|
4461
4461
|
if isterminal(s):
|
4462
4462
|
return [None for _ in range(s.kernel.game_config.num_players)]
|
4463
4463
|
return [
|
4464
|
-
get_deadline(s,
|
4465
|
-
for
|
4464
|
+
get_deadline(s, max_allotted_time)
|
4465
|
+
for max_allotted_time in get_max_allotted_times(s)
|
4466
4466
|
]
|
4467
4467
|
|
4468
4468
|
|
@@ -4540,6 +4540,7 @@ def imagine_state(public_state, private_state):
|
|
4540
4540
|
return init_memoized_state(imagined_kernel)
|
4541
4541
|
|
4542
4542
|
|
4543
|
+
@dispatch(State)
|
4543
4544
|
def isterminal(s):
|
4544
4545
|
return len(s.legal_actions_3) == 0
|
4545
4546
|
|
@@ -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=5FkQQV9pzpX8d5ss1XL1rR29ef6rTZgcM0U94aKcAI4,193861
|
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.2045.dist-info/METADATA,sha256=52qZ63D-sHB6TVNoa7FgJ_2_svgDpuPWsJLG8mnJuZg,188
|
7
|
+
graph_games_proto-0.3.2045.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
8
|
+
graph_games_proto-0.3.2045.dist-info/top_level.txt,sha256=-4QSrBMf_MM4BGsr2QXBpqDx8c8k_OPnzGyFjqjakes,18
|
9
|
+
graph_games_proto-0.3.2045.dist-info/RECORD,,
|
File without changes
|
File without changes
|