add board / tilebag

test_old_branch
Jérémy Mouyon 1 year ago
parent dfea32d9bb
commit 9433013e06

@ -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<Cell> Cells;
public Board()
{
Console.WriteLine("BOARD created !");
Cells = new List<Cell>();
for(int i = 0; i < 12; i++)
{
for (int j = 0; j < 12; j++)
{
var localcell = new Cell(i, j);
Cells.Add(localcell);
}
}
}
}
}

@ -1,7 +0,0 @@
namespace QwirkleClassLibrary
{
public class Class1
{
}
}

@ -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<Tile> tiles;
public TileBag()
{
tiles = new List<Tile>();
}
private void WhithdrawNbTiles()
{
this.nbtiles = this.nbtiles - 1;
}
}
}
Loading…
Cancel
Save