Code Smells de Rules.cs
continuous-integration/drone/push Build is passing Details

pull/112/head
Rémi LAVERGNE 11 months ago
parent 0d3c541c4b
commit e113ee2ac6

@ -103,7 +103,7 @@ namespace Models.Interfaces
/// <param name="ropePaths">The list of rope paths.</param>
/// <param name="index">The index of the rope path.</param>
/// <returns>True if the adjacent cell is in the rope path; otherwise false.</returns>
public bool IsInRopePaths(Cell adjacente, List<List<Cell>> ropePaths, out int index);
public bool IsInRopePaths(Cell adjacente, List<List<Cell>> ropePaths, int index);
/// <summary>
/// Check if the chosen cell has the same value as the rope path at the given index.

@ -44,7 +44,7 @@ namespace Models.Rules
}
public bool IsInRopePaths (Cell adjacente,List<List<Cell>> ropePaths, out int index)
public bool IsInRopePaths (Cell adjacente,List<List<Cell>> ropePaths, int index)
{
foreach (var path in ropePaths.Where(path => path.Contains(adjacente)))
{
@ -153,7 +153,6 @@ namespace Models.Rules
return;
}
}
return;
}
public void NewZoneIsCreated(Cell firstCell, Cell secondCell, Map map)

Loading…
Cancel
Save