diff --git a/Qwirkle/QwirkleClassLibrary/Board.cs b/Qwirkle/QwirkleClassLibrary/Board.cs new file mode 100644 index 0000000..a0a7543 --- /dev/null +++ b/Qwirkle/QwirkleClassLibrary/Board.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace QwirkleClassLibrary +{ + public class Board + { + private List Cells; + + public Board() + { + Console.WriteLine("BOARD created !"); + Cells = new List(); + + for(int i = 0; i < 12; i++) + { + for (int j = 0; j < 12; j++) + { + var localcell = new Cell(i, j); + Cells.Add(localcell); + } + } + } + } +} diff --git a/Qwirkle/QwirkleClassLibrary/Class1.cs b/Qwirkle/QwirkleClassLibrary/Class1.cs deleted file mode 100644 index ff018f9..0000000 --- a/Qwirkle/QwirkleClassLibrary/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace QwirkleClassLibrary -{ - public class Class1 - { - - } -} diff --git a/Qwirkle/QwirkleClassLibrary/TileBag.cs b/Qwirkle/QwirkleClassLibrary/TileBag.cs new file mode 100644 index 0000000..6f923f8 --- /dev/null +++ b/Qwirkle/QwirkleClassLibrary/TileBag.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace QwirkleClassLibrary +{ + public class TileBag + { + private int nbtiles; + private List tiles; + + public TileBag() + { + tiles = new List(); + } + + private void WhithdrawNbTiles() + { + this.nbtiles = this.nbtiles - 1; + } + } +}