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

pull/112/head
Rémi LAVERGNE 11 months ago
parent 66cf3c37b2
commit 8b54be4818

@ -44,7 +44,7 @@ namespace Models.Rules
}
public bool IsInRopePaths (Cell adjacente,List<List<Cell>> ropePaths,int index)
public bool IsInRopePaths (Cell adjacente,List<List<Cell>> ropePaths, out int index)
{
foreach (List<Cell> path in ropePaths)
{
@ -54,6 +54,8 @@ namespace Models.Rules
return true;
}
}
index = 0;
return false;
}
@ -92,7 +94,7 @@ namespace Models.Rules
{
if (chosenCell == null ||chosenCell.Value == null) return;
List<Cell> adjacentCells = new List<Cell>();
List<Cell> adjacentCells;
adjacentCells = EveryAdjacentCells(chosenCell, map.Boards.ToList());

Loading…
Cancel
Save