algorhino-anemone 0.1.5__py3-none-any.whl → 0.1.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: algorhino-anemone
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: anemone searches trees
5
5
  Author-email: Victor Gabillon <victorgabillon@gmail.com>
6
6
  License-Expression: GPL-3.0-only
@@ -12,7 +12,7 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.13
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: valanga>=0.1.6
15
+ Requires-Dist: valanga>=0.1.7
16
16
  Requires-Dist: atomheart>=0.1.2
17
17
  Requires-Dist: rich
18
18
  Requires-Dist: sortedcollections>=2.1.0
@@ -1,7 +1,7 @@
1
- algorhino_anemone-0.1.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
1
+ algorhino_anemone-0.1.6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
2
2
  anemone/__init__.py,sha256=iKX9OGJxbyIqe9Fy-xxZY6sdH7WcG4RFyPR0WBai7Ls,942
3
3
  anemone/basics.py,sha256=wKagPFuxXhDQbjTuM1Qjh37HcJt0m39NBMDg2dc2M6M,188
4
- anemone/factory.py,sha256=6emk6_mjuGiufAYaP-pHxlfhHH1Cr8ZsUz4dAENSRDc,6050
4
+ anemone/factory.py,sha256=V4uretydlF0ykyq4ybn28GkctrOv7-78RSsxOJsQgPg,6146
5
5
  anemone/state_transition.py,sha256=fxvHZOYRtWV5ExXRIoehdRg9qV6zhgiE5uiCeOc80Dc,1418
6
6
  anemone/tree_and_value_branch_selector.py,sha256=9m7cWzw_nsFKiqZ4l7B2fz0lZ9HZ2NUNH2flZpaaQvQ,3479
7
7
  anemone/tree_exploration.py,sha256=cg1iTp3j9p9jUNjm07ogbflX8VC15AV8GEhGz3g1YNU,10529
@@ -22,7 +22,7 @@ anemone/node_evaluation/node_tree_evaluation/node_minmax_evaluation.py,sha256=Ju
22
22
  anemone/node_evaluation/node_tree_evaluation/node_tree_evaluation.py,sha256=fHAKN_8vriERrfKfr_qDH-y7El6HBYFXHOe9eFFCDUw,4260
23
23
  anemone/node_evaluation/node_tree_evaluation/node_tree_evaluation_factory.py,sha256=UY1glqflqMOqOPAHhtuzJ8QhGOp55Y9InqdhCMt9KJ8,1279
24
24
  anemone/node_factory/__init__.py,sha256=qhbX58hu8-TdFof5zo3ibfPFvF-OWNSgJf3RDMrtyTQ,553
25
- anemone/node_factory/algorithm_node_factory.py,sha256=3seD9KOXotaCPw2ine2jao3WF4BMc_hDDHF7tbZQA4w,4070
25
+ anemone/node_factory/algorithm_node_factory.py,sha256=Pz0YYPqsuKaRiOhL9gJdEBPXEFepZNr_mZ_Ib94OVHs,4106
26
26
  anemone/node_factory/base.py,sha256=t_immiv-BDrPeQTUiOqvZLSlUq0zA2IbnM5Rweqv_n8,2134
27
27
  anemone/node_selector/__init__.py,sha256=DThR5UV-4WZG4PT5Lo0RPv9_P83ixFGfOSFoGihKtuA,1320
28
28
  anemone/node_selector/branch_explorer.py,sha256=3ywYkJe2R1Dg5nhmDXCgyhex85bT39Ql7ifRY--9Z_A,2677
@@ -76,7 +76,7 @@ anemone/utils/dict_of_numbered_dict_with_pointer_on_max.py,sha256=s5Z-O5mBwJUh4P
76
76
  anemone/utils/logger.py,sha256=bJQ8COqdn5obtbi8TuokQHmdHpp57XRksTmfvCLLfyM,2973
77
77
  anemone/utils/my_value_sorted_dict.py,sha256=LbqtpBSCS7VrUTUChWCsi18IKZj65FkTJREqbl-xSVA,619
78
78
  anemone/utils/small_tools.py,sha256=l9dy5Oqvuvg8qQXqJUfyb3uwBHwVGVrKz6WeTHjyLTk,2766
79
- algorhino_anemone-0.1.5.dist-info/METADATA,sha256=U4Ii16cqbK1gziuB4vmhye4AcCfKHZvNcyro1QsEW34,5691
80
- algorhino_anemone-0.1.5.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
81
- algorhino_anemone-0.1.5.dist-info/top_level.txt,sha256=G1vbB-vAevQVde3UZ5X1_Ysy1_6sJDEueHRi2qcDgrY,8
82
- algorhino_anemone-0.1.5.dist-info/RECORD,,
79
+ algorhino_anemone-0.1.6.dist-info/METADATA,sha256=NvUyWkJPOMg1ra_rUuXdj2RC57q04VaN_JvMP_zM7JA,5691
80
+ algorhino_anemone-0.1.6.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
81
+ algorhino_anemone-0.1.6.dist-info/top_level.txt,sha256=G1vbB-vAevQVde3UZ5X1_Ysy1_6sJDEueHRi2qcDgrY,8
82
+ algorhino_anemone-0.1.6.dist-info/RECORD,,
anemone/factory.py CHANGED
@@ -7,7 +7,7 @@ from queue import Queue
7
7
  from random import Random
8
8
  from typing import Literal, Type
9
9
 
10
- from valanga import RepresentationFactory, TurnState
10
+ from valanga import RepresentationFactory, StateModifications, TurnState
11
11
  from valanga.evaluator_types import EvaluatorInput
12
12
 
13
13
  from anemone import node_factory
@@ -57,7 +57,10 @@ def create_tree_and_value_branch_selector[StateT: TurnState](
57
57
  args: TreeAndValuePlayerArgs,
58
58
  random_generator: Random,
59
59
  master_state_evaluator: MasterStateEvaluator,
60
- state_representation_factory: RepresentationFactory[StateT, EvaluatorInput] | None,
60
+ state_representation_factory: RepresentationFactory[
61
+ StateT, EvaluatorInput, StateModifications
62
+ ]
63
+ | None,
61
64
  queue_progress_player: Queue[IsDataclass] | None,
62
65
  ) -> TreeAndValueBranchSelector[StateT]:
63
66
  """Convenience constructor using the default minmax tree evaluation.
@@ -86,7 +89,10 @@ def create_tree_and_value_branch_selector_with_tree_eval_factory[StateT: TurnSta
86
89
  args: TreeAndValuePlayerArgs,
87
90
  random_generator: Random,
88
91
  master_state_evaluator: MasterStateEvaluator,
89
- state_representation_factory: RepresentationFactory[StateT, EvaluatorInput] | None,
92
+ state_representation_factory: RepresentationFactory[
93
+ StateT, EvaluatorInput, StateModifications
94
+ ]
95
+ | None,
90
96
  node_tree_evaluation_factory: NodeTreeEvaluationFactory[StateT],
91
97
  queue_progress_player: Queue[IsDataclass] | None,
92
98
  ) -> TreeAndValueBranchSelector[StateT]:
@@ -38,7 +38,9 @@ class AlgorithmNodeFactory[StateT: State = State]:
38
38
  """
39
39
 
40
40
  tree_node_factory: TreeNodeFactory[AlgorithmNode[StateT], StateT]
41
- state_representation_factory: RepresentationFactory[StateT, EvaluatorInput] | None
41
+ state_representation_factory: (
42
+ RepresentationFactory[StateT, EvaluatorInput, StateModifications] | None
43
+ )
42
44
  node_tree_evaluation_factory: NodeTreeEvaluationFactory[StateT]
43
45
  exploration_index_data_create: node_indices.ExplorationIndexDataFactory[
44
46
  AlgorithmNode[StateT], StateT