You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NoraGrace/NoraGrace.Engine/Evaluation/MaterialEvaluator.cs
+17-18Lines changed: 17 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,12 @@ public MaterialSettingsPhase()
59
59
publicclassMaterialResults
60
60
{
61
61
publicreadonlyInt64ZobristMaterial;
62
-
publicreadonlyintStartWeight;
62
+
63
63
publicreadonlyintScore;
64
+
publicreadonlyScaleFactorStartWeight;
65
+
publicreadonlyScaleFactorScaleWhite;
66
+
publicreadonlyScaleFactorScaleBlack;
64
67
65
-
publicreadonlyintScaleWhite;
66
-
publicreadonlyintScaleBlack;
67
68
//public readonly int Wp;
68
69
//public readonly int Wn;
69
70
//public readonly int Wb;
@@ -75,7 +76,7 @@ public class MaterialResults
75
76
//public readonly int Br;
76
77
//public readonly int Bq;
77
78
78
-
publicMaterialResults(Int64zobristMaterial,intstartWeight,intscore,intscaleWhite,intscaleBlack/*, int wp, int wn, int wb, int wr, int wq, int bp, int bn, int bb, int br, int bq*/)
79
+
publicMaterialResults(Int64zobristMaterial,ScaleFactorstartWeight,intscore,ScaleFactorscaleWhite,ScaleFactorscaleBlack/*, int wp, int wn, int wb, int wr, int wq, int bp, int bn, int bb, int br, int bq*/)
79
80
{
80
81
ZobristMaterial=zobristMaterial;
81
82
StartWeight=startWeight;
@@ -97,7 +98,7 @@ public MaterialResults(Int64 zobristMaterial, int startWeight, int score, int sc
97
98
98
99
publicboolDoShelter
99
100
{
100
-
get{returnthis.StartWeight>40;}
101
+
get{returnthis.StartWeight.ToDouble()>.4;}
101
102
}
102
103
103
104
}
@@ -157,30 +158,29 @@ public MaterialResults EvalMaterial(Int64 zob, int wp, int wn, int wb, int wr, i
0 commit comments