adding a lil doc

master
rportet 11 months ago
parent 35134c2bbc
commit 2026228b71

@ -6,6 +6,9 @@ using QwirkleClassLibrary.Tiles;
namespace QwirkleClassLibrary.Boards;
/// <summary>
/// Our board is made with a list of this class. It can stock infos such as its position on the board and the tile it contains.
/// </summary>
[DataContract]
public class Cell : INotifyPropertyChanged
{

@ -11,6 +11,9 @@ using static System.Formats.Asn1.AsnWriter;
namespace QwirkleClassLibrary.Games
{
/// <summary>
/// This is our main class for the Qwirkle application, taking care of the good efficiency of the game.
/// </summary>
[DataContract]
public class Game : IPlayer, IRules, INotifyPropertyChanged
{

@ -5,6 +5,9 @@ using QwirkleClassLibrary.Tiles;
namespace QwirkleClassLibrary.Games;
/// <summary>
/// This interface is used for all methods related to the player, such as the moves he can make.
/// </summary>
public interface IPlayer
{
public Player CreatePlayer(string playerTag);

@ -9,6 +9,9 @@ using QwirkleClassLibrary.Tiles;
namespace QwirkleClassLibrary.Games
{
/// <summary>
/// This interface is used to define the functions used in the game. It is mainly about all the rules of the games, chacking if the player moves are correct.
/// </summary>
public interface IRules
{
Board CreateBoard();

Loading…
Cancel
Save