Merge branch 'master' of https://codefirst.iut.uca.fr/git/jeremy.mouyon/sae201_qwirkle
continuous-integration/drone/push Build is failing Details

test_old_branch
rportet 1 year ago
commit d92d2317c9

@ -13,8 +13,8 @@ namespace QwirkleClassLibrary
public ReadOnlyCollection<Cell> ReadCells => cells.AsReadOnly(); public ReadOnlyCollection<Cell> ReadCells => cells.AsReadOnly();
private readonly List<Cell> cells = new(); private readonly List<Cell> cells = new();
private int Rows { get; } public int Rows { get; }
private int Columns { get; } public int Columns { get; }
public Board(int rows, int cols) public Board(int rows, int cols)
{ {

@ -59,6 +59,8 @@ namespace QwirkleClassLibrary
return player; return player;
} }
public Board GetBoard() { return board; }
public Board CreateBoard() public Board CreateBoard()
{ {
board = new Board(12, 12); board = new Board(12, 12);

@ -9,7 +9,11 @@ namespace QwirkleClassLibrary
public interface IRules public interface IRules
{ {
Board CreateBoard(); Board CreateBoard();
bool IsMoveCorrect(Tile t, Board b);
TileBag CreateTileBag(int nbSet);
bool IsMoveCorrect(Tile t, int x, int y, Board b);
bool IsGameOver(); bool IsGameOver();
} }
} }

Loading…
Cancel
Save