|
|
|
@ -46,11 +46,13 @@ namespace Models.Rules
|
|
|
|
|
|
|
|
|
|
public bool IsInRopePaths (Cell adjacente,List<List<Cell>> ropePaths, int index)
|
|
|
|
|
{
|
|
|
|
|
foreach (var path in ropePaths.Where(path => path.Contains(adjacente)))
|
|
|
|
|
foreach (List<Cell> path in ropePaths)
|
|
|
|
|
{
|
|
|
|
|
if (!path.Contains(adjacente)) continue;
|
|
|
|
|
index=ropePaths.IndexOf(path);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return index != -1;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool AsValue (Cell choosenCell, List<List<Cell>> ropePaths,int index)
|
|
|
|
|