|
|
@ -27,7 +27,7 @@ namespace QwirkleClassLibrary.Games
|
|
|
|
public bool GameRunning { get; set; }
|
|
|
|
public bool GameRunning { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
[DataMember]
|
|
|
|
private Board board = new Board(15, 12);
|
|
|
|
private Board board = new(15, 12);
|
|
|
|
|
|
|
|
|
|
|
|
public bool PlayerSwapping { get; set; }
|
|
|
|
public bool PlayerSwapping { get; set; }
|
|
|
|
public Board Board => board;
|
|
|
|
public Board Board => board;
|
|
|
@ -35,15 +35,15 @@ namespace QwirkleClassLibrary.Games
|
|
|
|
public ReadOnlyCollection<Player> PlayerList => players.AsReadOnly();
|
|
|
|
public ReadOnlyCollection<Player> PlayerList => players.AsReadOnly();
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
[DataMember]
|
|
|
|
private readonly List<Player> players = new();
|
|
|
|
private readonly List<Player> players = [];
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
[DataMember]
|
|
|
|
private readonly Dictionary<Player, int> scoreBoard = new();
|
|
|
|
private readonly Dictionary<Player, int> scoreBoard = [];
|
|
|
|
|
|
|
|
|
|
|
|
public ReadOnlyDictionary<Player, int> ScoreBoard => scoreBoard.AsReadOnly();
|
|
|
|
public ReadOnlyDictionary<Player, int> ScoreBoard => scoreBoard.AsReadOnly();
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
[DataMember]
|
|
|
|
private readonly List<Cell> cellUsed = new();
|
|
|
|
private readonly List<Cell> cellUsed = [];
|
|
|
|
|
|
|
|
|
|
|
|
public ReadOnlyCollection<Cell> CellsUsed => cellUsed.AsReadOnly();
|
|
|
|
public ReadOnlyCollection<Cell> CellsUsed => cellUsed.AsReadOnly();
|
|
|
|
|
|
|
|
|
|
|
|