public NnueEvaluationService(INnueClient client) { _client = client; _evalTable = new EvalHashTable(); _evalTable.SetSize(16 * 1024 * 1024); _position = new NnuePosition(client.RequiresManagedData); _position.Pieces[0] = 1; _position.Pieces[1] = 7; }
public int Evaluate(NnuePosition pos) { var result = nncpu_evaluate(pos.Player, pos.Pieces, pos.Squares); return(result); }