3
3
< div class ="table-cell " id ="tsd-search " data-base =".. ">
4
4
< div class ="field "> < label for ="tsd-search-field " class ="tsd-widget tsd-toolbar-icon search no-caption "> < svg width ="16 " height ="16 " viewBox ="0 0 16 16 " fill ="none "> < path d ="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z " fill ="var(--color-text) "> </ path > </ svg > </ label > < input type ="text " id ="tsd-search-field " aria-label ="Search "/> </ div >
5
5
< div class ="field ">
6
- < div id ="tsd-toolbar-links "> </ div > </ div >
6
+ < div id ="tsd-toolbar-links "> < a href =" https://github.com/domw95/minimaxer " > GitHub </ a > < a href =" https://domwil.co.uk/minimaxer/ " > Blog </ a > < /div > </ div >
7
7
< ul class ="results ">
8
8
< li class ="state loading "> Preparing search index...</ li >
9
9
< li class ="state failure "> The search index is not available</ li > </ ul > < a href ="../index.html " class ="title "> minimaxer - v3.2.3</ a > </ div >
17
17
< h1 > Enumeration NodeAim< code class ="tsd-tag ts-flagConst "> Const</ code > </ h1 > </ div >
18
18
< section class ="tsd-panel tsd-comment ">
19
19
< div class ="tsd-comment tsd-typography "> < p > Defines the goal at the current gamestate for selecting children.
20
- Value of the < a href ="../classes/Node.html "> Nodes</ a > child is chosen by applying the < a href ="NodeAim.html "> NodeAim</ a > to its children.</ p >
20
+ It is used to select the best of the < a href ="../classes/Node.html "> Nodes</ a > children by their corresponding value,
21
+ and therefore to assign a value to the Node.</ p >
21
22
</ div > </ section > < aside class ="tsd-sources ">
22
23
< ul >
23
- < li > Defined in < a href ="https://github.com/domw95/minimax-ts /blob/d489d5e /src/tree/node.ts#L17 "> tree/node.ts:17 </ a > </ li > </ ul > </ aside >
24
+ < li > Defined in < a href ="https://github.com/domw95/minimaxer /blob/main /src/tree/node.ts#L18 "> tree/node.ts:18 </ a > </ li > </ ul > </ aside >
24
25
< section class ="tsd-panel-group tsd-index-group ">
25
26
< section class ="tsd-panel tsd-index-panel ">
26
27
< details class ="tsd-index-content tsd-index-accordion " open > < summary class ="tsd-accordion-summary tsd-index-summary ">
27
28
< h5 class ="tsd-index-heading uppercase " role ="button " aria-expanded ="false " tabIndex =0 > < svg width ="16 " height ="16 " viewBox ="0 0 16 16 " fill ="none "> < path d ="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z " fill ="var(--color-text) "> </ path > </ svg > Index</ h5 > </ summary >
28
29
< div class ="tsd-accordion-details ">
29
30
< section class ="tsd-index-section ">
30
31
< h3 class ="tsd-index-heading "> Enumeration Members</ h3 >
31
- < div class ="tsd-index-list "> < a href ="NodeAim.html#MAX " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < rect fill ="var(--color-icon-background) " stroke ="#FF984D " stroke-width ="1.5 " x ="1 " y ="1 " width ="22 " height ="22 " rx ="12 " id ="icon-1024-path "> </ rect > < path d ="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z " fill ="var(--color-text) " id ="icon-1024-text "> </ path > </ svg > < span > MAX</ span > </ a >
32
- < a href ="NodeAim.html#MEAN " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > < span > MEAN</ span > </ a >
33
- < a href ="NodeAim.html#MIN " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > < span > MIN</ span > </ a >
32
+ < div class ="tsd-index-list "> < a href ="NodeAim.html#MIN " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < rect fill ="var(--color-icon-background) " stroke ="#FF984D " stroke-width ="1.5 " x ="1 " y ="1 " width ="22 " height ="22 " rx ="12 " id ="icon-1024-path "> </ rect > < path d ="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z " fill ="var(--color-text) " id ="icon-1024-text "> </ path > </ svg > < span > MIN</ span > </ a >
34
33
< a href ="NodeAim.html#NONE " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > < span > NONE</ span > </ a >
35
- < a href ="NodeAim.html#PROB " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > < span > PROB </ span > </ a >
34
+ < a href ="NodeAim.html#MAX " class ="tsd-index-link tsd-kind-enum-member tsd-parent-kind-enum "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > < span > MAX </ span > </ a >
36
35
</ div > </ section > </ div > </ details > </ section > </ section >
37
36
< section class ="tsd-panel-group tsd-member-group ">
38
37
< h2 > Enumeration Members</ h2 >
39
- < section class ="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum "> < a id ="MAX " class ="tsd-anchor "> </ a >
40
- < h3 class ="tsd-anchor-link "> < span > MAX</ span > < a href ="#MAX " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke ="none " d ="M0 0h24v24H0z " fill ="none " id ="icon-anchor-a "> </ path > < path d ="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5 " id ="icon-anchor-b "> </ path > < path d ="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5 " id ="icon-anchor-c "> </ path > </ svg > </ a > </ h3 >
41
- < div class ="tsd-signature "> MAX< span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> 1</ span > </ div >
42
- < div class ="tsd-comment tsd-typography "> < p > Current player will select maximum of children values</ p >
43
- </ div > < aside class ="tsd-sources ">
44
- < ul >
45
- < li > Defined in < a href ="https://github.com/domw95/minimax-ts/blob/d489d5e/src/tree/node.ts#L22 "> tree/node.ts:22</ a > </ li > </ ul > </ aside > </ section >
46
- < section class ="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum "> < a id ="MEAN " class ="tsd-anchor "> </ a >
47
- < h3 class ="tsd-anchor-link "> < span > MEAN</ span > < a href ="#MEAN " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < use href ="#icon-anchor-a "> </ use > < use href ="#icon-anchor-b "> </ use > < use href ="#icon-anchor-c "> </ use > </ svg > </ a > </ h3 >
48
- < div class ="tsd-signature "> MEAN< span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> 2</ span > </ div >
49
- < div class ="tsd-comment tsd-typography "> < p > Node value is based on the mean of all the children (equal probability e.g 1 die)</ p >
50
- </ div > < aside class ="tsd-sources ">
51
- < ul >
52
- < li > Defined in < a href ="https://github.com/domw95/minimax-ts/blob/d489d5e/src/tree/node.ts#L24 "> tree/node.ts:24</ a > </ li > </ ul > </ aside > </ section >
53
38
< section class ="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum "> < a id ="MIN " class ="tsd-anchor "> </ a >
54
- < h3 class ="tsd-anchor-link "> < span > MIN</ span > < a href ="#MIN " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < use href =" # icon-anchor-a "> </ use > < use href =" # icon-anchor-b "> </ use > < use href =" # icon-anchor-c "> </ use > </ svg > </ a > </ h3 >
39
+ < h3 class ="tsd-anchor-link "> < span > MIN</ span > < a href ="#MIN " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < path stroke =" none " d =" M0 0h24v24H0z " fill =" none " id =" icon-anchor-a "> </ path > < path d =" M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5 " id =" icon-anchor-b "> </ path > < path d =" M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5 " id =" icon-anchor-c "> </ path > </ svg > </ a > </ h3 >
55
40
< div class ="tsd-signature "> MIN< span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> -1</ span > </ div >
56
41
< div class ="tsd-comment tsd-typography "> < p > Current player will select minimum of children values</ p >
57
42
</ div > < aside class ="tsd-sources ">
58
43
< ul >
59
- < li > Defined in < a href ="https://github.com/domw95/minimax-ts /blob/d489d5e /src/tree/node.ts#L19 "> tree/node.ts:19 </ a > </ li > </ ul > </ aside > </ section >
44
+ < li > Defined in < a href ="https://github.com/domw95/minimaxer /blob/main /src/tree/node.ts#L20 "> tree/node.ts:20 </ a > </ li > </ ul > </ aside > </ section >
60
45
< section class ="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum "> < a id ="NONE " class ="tsd-anchor "> </ a >
61
46
< h3 class ="tsd-anchor-link "> < span > NONE</ span > < a href ="#NONE " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < use href ="#icon-anchor-a "> </ use > < use href ="#icon-anchor-b "> </ use > < use href ="#icon-anchor-c "> </ use > </ svg > </ a > </ h3 >
62
- < div class ="tsd-signature "> NONE< span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> 0</ span > </ div > < aside class ="tsd-sources ">
47
+ < div class ="tsd-signature "> NONE< span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> 0</ span > </ div >
48
+ < div class ="tsd-comment tsd-typography "> < p > Default value, error if used during normal search.</ p >
49
+ </ div > < aside class ="tsd-sources ">
63
50
< ul >
64
- < li > Defined in < a href ="https://github.com/domw95/minimax-ts /blob/d489d5e /src/tree/node.ts#L20 "> tree/node.ts:20 </ a > </ li > </ ul > </ aside > </ section >
65
- < section class ="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum "> < a id ="PROB " class ="tsd-anchor "> </ a >
66
- < h3 class ="tsd-anchor-link "> < span > PROB </ span > < a href ="#PROB " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < use href ="#icon-anchor-a "> </ use > < use href ="#icon-anchor-b "> </ use > < use href ="#icon-anchor-c "> </ use > </ svg > </ a > </ h3 >
67
- < div class ="tsd-signature "> PROB < span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> 3 </ span > </ div >
68
- < div class ="tsd-comment tsd-typography "> < p > Node value is based on the probability of all children (e.g 2 dice) </ p >
51
+ < li > Defined in < a href ="https://github.com/domw95/minimaxer /blob/main /src/tree/node.ts#L24 "> tree/node.ts:24 </ a > </ li > </ ul > </ aside > </ section >
52
+ < section class ="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum "> < a id ="MAX " class ="tsd-anchor "> </ a >
53
+ < h3 class ="tsd-anchor-link "> < span > MAX </ span > < a href ="#MAX " aria-label ="Permalink " class ="tsd-anchor-icon "> < svg class ="icon icon-tabler icon-tabler-link " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round "> < use href ="#icon-anchor-a "> </ use > < use href ="#icon-anchor-b "> </ use > < use href ="#icon-anchor-c "> </ use > </ svg > </ a > </ h3 >
54
+ < div class ="tsd-signature "> MAX < span class ="tsd-signature-symbol "> :</ span > < span class ="tsd-signature-type "> 1 </ span > </ div >
55
+ < div class ="tsd-comment tsd-typography "> < p > Current player will select maximum of children values </ p >
69
56
</ div > < aside class ="tsd-sources ">
70
57
< ul >
71
- < li > Defined in < a href ="https://github.com/domw95/minimax-ts /blob/d489d5e /src/tree/node.ts#L26 "> tree/node.ts:26</ a > </ li > </ ul > </ aside > </ section > </ section > </ div >
58
+ < li > Defined in < a href ="https://github.com/domw95/minimaxer /blob/main /src/tree/node.ts#L26 "> tree/node.ts:26</ a > </ li > </ ul > </ aside > </ section > </ section > </ div >
72
59
< div class ="col-4 col-menu menu-sticky-wrap menu-highlight ">
73
60
< div class ="tsd-navigation settings ">
74
61
< details class ="tsd-index-accordion "> < summary class ="tsd-accordion-summary ">
@@ -94,11 +81,9 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
94
81
< ul >
95
82
< li class ="current tsd-kind-enum "> < a href ="NodeAim.html " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < rect fill ="var(--color-icon-background) " stroke ="var(--color-ts-enum) " stroke-width ="1.5 " x ="1 " y ="1 " width ="22 " height ="22 " rx ="6 " id ="icon-8-path "> </ rect > < path d ="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z " fill ="var(--color-text) " id ="icon-8-text "> </ path > </ svg > < span > Node< wbr /> Aim</ span > </ a >
96
83
< ul >
97
- < li class ="tsd-kind-enum-member tsd-parent-kind-enum "> < a href ="NodeAim.html#MAX " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > MAX</ a > </ li >
98
- < li class ="tsd-kind-enum-member tsd-parent-kind-enum "> < a href ="NodeAim.html#MEAN " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > MEAN</ a > </ li >
99
84
< li class ="tsd-kind-enum-member tsd-parent-kind-enum "> < a href ="NodeAim.html#MIN " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > MIN</ a > </ li >
100
85
< li class ="tsd-kind-enum-member tsd-parent-kind-enum "> < a href ="NodeAim.html#NONE " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > NONE</ a > </ li >
101
- < li class ="tsd-kind-enum-member tsd-parent-kind-enum "> < a href ="NodeAim.html#PROB " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > PROB </ a > </ li > </ ul > </ li > </ ul > </ nav > </ div > </ div >
86
+ < li class ="tsd-kind-enum-member tsd-parent-kind-enum "> < a href ="NodeAim.html#MAX " class ="tsd-index-link "> < svg class ="tsd-kind-icon " width ="24 " height ="24 " viewBox ="0 0 24 24 "> < use href ="#icon-1024-path "> </ use > < use href ="#icon-1024-text "> </ use > </ svg > MAX </ a > </ li > </ ul > </ li > </ ul > </ nav > </ div > </ div >
102
87
< div class ="container tsd-generator ">
103
88
< p > Generated using < a href ="https://typedoc.org/ " target ="_blank "> TypeDoc</ a > </ p > </ div >
104
89
< div class ="overlay "> </ div > < script src ="../assets/main.js "> </ script > < script src ="../assets/custom.js "> </ script > </ body > </ html >
0 commit comments