Correction d'un problème d'indentation
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

pull/67/head
Rémi LAVERGNE 11 months ago
parent cb5edd97af
commit 1714634f47
No known key found for this signature in database
GPG Key ID: CA264B55E97FD220

@ -1,6 +1,7 @@
using Models.Game;
namespace Models.Events;
namespace Models.Events
{
/// <summary>
/// Event arguments for when a cell is chosen.
/// </summary>
@ -15,3 +16,4 @@ public class CellChosenEventArgs : EventArgs
Result = result;
}
}
}

@ -1,6 +1,7 @@
using Models.Game;
namespace Models.Events;
namespace Models.Events
{
/// <summary>
/// Event arguments for when the dice are rolled.
/// </summary>
@ -15,3 +16,4 @@ public class DiceRolledEventArgs : EventArgs
Dice2Value = dice2Value;
}
}
}

@ -1,6 +1,7 @@
using Models.Game;
namespace Models.Events;
namespace Models.Events
{
/// <summary>
/// Event arguments for when the game ends.
/// </summary>
@ -13,3 +14,4 @@ public class GameEndedEventArgs : EventArgs
CurrentPlayer = winner;
}
}
}

@ -1,6 +1,7 @@
using Models.Game;
namespace Models.Events;
namespace Models.Events
{
/// <summary>
/// Event arguments for when the game starts.
/// </summary>
@ -13,3 +14,5 @@ public class GameStartedEventArgs : EventArgs
CurrentPlayer = selectedPlayer;
}
}
}

@ -1,6 +1,7 @@
using Models.Game;
namespace Models.Events;
namespace Models.Events
{
/// <summary>
/// Event arguments for when an operation is chosen.
/// </summary>
@ -15,3 +16,4 @@ public class OperationChosenEventArgs : EventArgs
Result = result;
}
}
}

@ -1,5 +1,5 @@
namespace Models.Exceptions;
namespace Models.Exceptions
{
/// <summary>
/// Exception for when the cell coordinates are invalid.
/// </summary>
@ -7,3 +7,5 @@ public class InvalidCellCoordinatesException : Exception
{
public InvalidCellCoordinatesException(string message) : base(message) { }
}
}

@ -1,5 +1,5 @@
namespace Models.Exceptions;
namespace Models.Exceptions
{
/// <summary>
/// Exception for when the cell is invalid.
/// </summary>
@ -7,3 +7,5 @@ public class InvalidCellException : Exception
{
public InvalidCellException(string message) : base(message) { }
}
}

@ -1,5 +1,5 @@
namespace Models.Game;
namespace Models.Game
{
/// <summary>
/// The Cell class represents a cell in the application.
/// </summary>
@ -61,3 +61,4 @@ public class Cell : Position, IEquatable<Cell>
return false;
}
}
}

@ -1,4 +1,5 @@
namespace Models.Game;
namespace Models.Game
{
/// <summary>
/// The Map class is the representation of the game map with the board and the operations table.
@ -74,3 +75,4 @@ public class Map
return operationGrid;
}
}
}

@ -1,5 +1,5 @@
namespace Models.Game;
namespace Models.Game
{
/// <summary>
/// Represents a cell in the operation grid of the game.
/// </summary>
@ -16,7 +16,8 @@ public class OperationCell : Position
/// <param name="x"></param>
/// <param name="y"></param>
public OperationCell(int x, int y) : base(x, y)
{ }
{
}
/// <summary>
/// Check the operation cell.
@ -26,3 +27,4 @@ public class OperationCell : Position
IsChecked = true;
}
}
}

@ -1,4 +1,5 @@
namespace Models.Game;
namespace Models.Game
{
/// <summary>
/// Represents a player in the game.
@ -78,3 +79,4 @@ public class Player
return Pseudo.GetHashCode();
}
}
}

@ -1,4 +1,5 @@
namespace Models.Game;
namespace Models.Game
{
/// <summary>
/// The Position (x,y) of a cell in the game.
@ -26,3 +27,4 @@ public class Position
Y = y;
}
}
}

@ -1,6 +1,7 @@
using Models.Game;
namespace Models.Interfaces;
namespace Models.Interfaces
{
/// <summary>
/// Interface for the rules of the game.
@ -124,3 +125,4 @@ public interface IRules
/// <returns>True if the chosen cell has the same value as the rope path; otherwise false.</returns>
public bool AsValue(Cell choosenCell, List<List<Cell>> ropePaths, int index);
}
}
Loading…
Cancel
Save