diff --git a/Qwirkle/QwirkleClassLibrary/Board.cs b/Qwirkle/QwirkleClassLibrary/Board.cs index 52a0719..4614b52 100644 --- a/Qwirkle/QwirkleClassLibrary/Board.cs +++ b/Qwirkle/QwirkleClassLibrary/Board.cs @@ -13,8 +13,8 @@ namespace QwirkleClassLibrary public ReadOnlyCollection ReadCells => cells.AsReadOnly(); private readonly List cells = new(); - private int Rows { get; } - private int Columns { get; } + public int Rows { get; } + public int Columns { get; } public Board(int rows, int cols) { diff --git a/Qwirkle/QwirkleClassLibrary/Game.cs b/Qwirkle/QwirkleClassLibrary/Game.cs index d87d83f..1262316 100644 --- a/Qwirkle/QwirkleClassLibrary/Game.cs +++ b/Qwirkle/QwirkleClassLibrary/Game.cs @@ -59,6 +59,8 @@ namespace QwirkleClassLibrary return player; } + public Board GetBoard() { return board; } + public Board CreateBoard() { board = new Board(12, 12); diff --git a/Qwirkle/QwirkleClassLibrary/IRules.cs b/Qwirkle/QwirkleClassLibrary/IRules.cs index 4d0456e..75d47a4 100644 --- a/Qwirkle/QwirkleClassLibrary/IRules.cs +++ b/Qwirkle/QwirkleClassLibrary/IRules.cs @@ -9,7 +9,11 @@ namespace QwirkleClassLibrary public interface IRules { Board CreateBoard(); - bool IsMoveCorrect(Tile t, Board b); + + TileBag CreateTileBag(int nbSet); + + bool IsMoveCorrect(Tile t, int x, int y, Board b); + bool IsGameOver(); } }