bool WinCondition() { foreach (var node in Nodes) { if (!Completed.Contains(node)) { return(false); } } return(true); }
public void SetAvailable(List <Node> list, bool active) { if (active) { foreach (Node item in list) { if (!Completed.Contains(item)) { item.Available = active; } } } else { foreach (Node item in list) { item.Available = active; } } }