Suppression de code commenter et fonction EveryAdjacentCells mit nullable pour faire baisser les codes smells

pull/112/head
Remi NEVEU 11 months ago
parent 3104b66a39
commit 68d29bc5a5

@ -61,9 +61,6 @@ namespace Models.Game
/// <param name="profilePicture">The profile picture of the player.</param> /// <param name="profilePicture">The profile picture of the player.</param>
public Player(string pseudo, string profilePicture) public Player(string pseudo, string profilePicture)
{ {
//char[] trim = { ' ', '\n', '\t' };
//Pseudo = pseudo.Trim();
//Pseudo = Pseudo.TrimEnd(trim);
Pseudo = pseudo; Pseudo = pseudo;
ProfilePicture = profilePicture; ProfilePicture = profilePicture;
CreationDate = DateTime.Now.ToString("dd/MM/yyyy"); CreationDate = DateTime.Now.ToString("dd/MM/yyyy");

@ -168,7 +168,7 @@ namespace Models.Rules
map.Zones.Add(newZone); map.Zones.Add(newZone);
} }
public List<Cell> EveryAdjacentCells(Cell choosenCell, List<Cell> cells) public List<Cell> EveryAdjacentCells(Cell? choosenCell, List<Cell> cells)
{ {
List<Cell> adjacentCells = new List<Cell>(); List<Cell> adjacentCells = new List<Cell>();

Loading…
Cancel
Save