public List <double> RollDecision(int otherScore) { List <double> outputs; int scoreDifference = otherScore - _score; List <int> input = new List <int>(); if (net._inputLayer._inputNeuronCount == 3) { input = new List <int> { _roundScore, _score, scoreDifference } } ; else if (net._inputLayer._inputNeuronCount == 2) { input = new List <int> { _roundScore, scoreDifference } } ; List <double> inputDouble = input.ConvertAll(x => (double)x); outputs = net.ComputeLayers(inputDouble); return(outputs); }
public List <double> RollDecision(int otherScore) { List <double> outputs; int scoreDifference = otherScore - _score; List <int> input = new List <int> { _roundScore, scoreDifference }; List <double> inputDouble = input.ConvertAll(x => (double)x); outputs = net.ComputeLayers(inputDouble); return(outputs); }