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

test_old_branch
Jérémy Mouyon 12 months ago
commit b4f18de867

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
@ -9,12 +10,11 @@ namespace QwirkleClassLibrary
{ {
public class Board public class Board
{ {
private List<Cell> cells; public ReadOnlyCollection<Cell> ReadCells => cells.AsReadOnly();
public IReadOnlyCollection<Cell> ReadCells { get; private set; } private readonly List<Cell> cells = new();
public Board() public Board()
{ {
cells = new List<Cell>();
for (int i = 0; i < 12; i++) for (int i = 0; i < 12; i++)
{ {

Loading…
Cancel
Save