|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
@ -18,7 +19,7 @@ namespace QwirkleClassLibrary
|
|
|
|
|
{
|
|
|
|
|
for (int j = 0; j < 12; j++)
|
|
|
|
|
{
|
|
|
|
|
var localcell = new Cell(i, j);
|
|
|
|
|
Cell localcell = new(i, j);
|
|
|
|
|
Cells.Add(localcell);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -30,7 +31,11 @@ namespace QwirkleClassLibrary
|
|
|
|
|
{
|
|
|
|
|
if (this.Cells[i].GetX == x && this.Cells[i].GetY == y)
|
|
|
|
|
{
|
|
|
|
|
return Cells[i].IsFree == false && Cells[i].SetTile(tile);
|
|
|
|
|
if (Cells[i].IsFree == true)
|
|
|
|
|
{
|
|
|
|
|
return Cells[i].SetTile(tile);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|