Bug de Rules.cs
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

pull/112/head
Rémi LAVERGNE 1 year ago
parent e414771027
commit 6509cbcdd1

@ -46,11 +46,13 @@ namespace Models.Rules
public bool IsInRopePaths (Cell adjacente,List<List<Cell>> ropePaths, int index) 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); index=ropePaths.IndexOf(path);
return true;
} }
return index != -1; return false;
} }
public bool AsValue (Cell choosenCell, List<List<Cell>> ropePaths,int index) public bool AsValue (Cell choosenCell, List<List<Cell>> ropePaths,int index)

Loading…
Cancel
Save