@ -31,7 +31,7 @@ namespace QwirkleClassLibrary
{
if (this.Cells[i].GetX == x && this.Cells[i].GetY == y)
if(Cells[i].SetTile(tile) == true)
if (Cells[i].SetTile(tile) == true)
return true;
}
@ -36,7 +36,7 @@ public class Cell
get { return tile; }
public bool SetTile(Tile? addedTile)
public bool SetTile(Tile addedTile)
if(tile == null)
@ -74,7 +74,7 @@ namespace QwirkleClassLibrary
players[old].IsPlaying = false;
players[neew].IsPlaying = true;
Console.WriteLine(players[neew].GetName + "you have main now !");
Console.WriteLine(players[neew].GetNameTag + "you have main now !");
@ -14,7 +14,7 @@ namespace QwirkleClassLibrary
public Score(Player p)
score = 0;
playerTag = p.GetName;
playerTag = p.GetNameTag;
@ -10,7 +10,6 @@ namespace QwirkleClassLibrary
public class Tile
private Shape shape;
private Color color;
public Tile(Shape sh, Color co)
@ -16,7 +16,7 @@ namespace QwirkleClassLibrary
tiles = new List<Tile>();
for(int i=0; i<3; i++)
for (int i = 0; i < 3; i++)
foreach (Shape s in Enum.GetValues(typeof(Shape)))
@ -34,7 +34,7 @@ namespace QwirkleClassLibrary
public void RemoveTileInBag(Tile tile)
for(int i=0; i<tiles.Count; i++)
for (int i = 0; i < tiles.Count; i++)
if (tiles[i] == tile)