I am making a tree based AI for a game originating in Nepal called Tigers and Goats (or Tigers and Sheep). I am now starting to make the classes for the trees, but I am running into an error where my constructors are the same, although they are using different types of list.
Here are my two constructors:
public MoveTree(List<MoveTree> children, MoveTree parent)
{
this.children = children;
this.parent = parent;
}
public MoveTree(List<Move> moves, MoveTree parent)
{
this.moves = moves;
this.parent = parent;
}
I am using intellij and it is giving me the error shown here
How can I avoid this error while still having my two constructors? I want to be able to do this without changing my constructors too much so that I can have different ways of implementing this class for different purposes