我定义了以下接口:
public interface IStateSpace<State, Action>
where State : IState
where Action : IAction<State, Action> // <-- this is the line that bothers me
{
void SetValueAt(State state, Action action);
Action GetValueAt(State state);
}
基本上,IStateSpace界面应该类似于棋盘,并且在棋盘的每个位置都有一组可能的动