public interface INetwork
{
void SetInput(IInputGenerator input);
}
Maybe this is a bit too much ?
Or maybe IInputReader would be better. For why would it has to generate input if it might already be created.
Or maybe IIterator would be better. For reader would suggest it would read from a persistent resource.
I also defined a GameService. But it's a class which is far too fat. I even doubt if service concept is any good. For it is not specific enough.
Last edited by Henk on Sat Jun 16, 2018 7:53 pm, edited 3 times in total.
Currently I use this interface but I think it should be a template for now it assumes output is an array of double. But that need not be.
Might also be that at the time I have finished rewriting all my chess software I got so bored or sick of it that I don't want to have to do anything with chess programming again.
Risk of creating something generic is that you may never reuse it.