17 lines
299 B
C#
17 lines
299 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Craftimizer.Solver;
|
|
|
|
[StructLayout(LayoutKind.Auto)]
|
|
public sealed class RootScores
|
|
{
|
|
public float MaxScore;
|
|
public int Visits;
|
|
|
|
public void Visit(float score)
|
|
{
|
|
MaxScore = Math.Max(MaxScore, score);
|
|
Visits++;
|
|
}
|
|
}
|