fix of fusion

test_old_branch
Jérémy Mouyon 1 year ago
parent b213356970
commit fecfdf40fd

@ -31,7 +31,7 @@ namespace QwirkleClassLibrary
{ {
if (this.Cells[i].GetX == x && this.Cells[i].GetY == y) 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; return true;
} }

@ -36,7 +36,7 @@ public class Cell
get { return tile; } get { return tile; }
} }
public bool SetTile(Tile? addedTile) public bool SetTile(Tile addedTile)
{ {
if(tile == null) if(tile == null)
{ {

@ -74,7 +74,7 @@ namespace QwirkleClassLibrary
players[old].IsPlaying = false; players[old].IsPlaying = false;
} }
players[neew].IsPlaying = true; 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) public Score(Player p)
{ {
score = 0; score = 0;
playerTag = p.GetName; playerTag = p.GetNameTag;
} }
} }

@ -10,7 +10,6 @@ namespace QwirkleClassLibrary
public class Tile public class Tile
{ {
private Shape shape; private Shape shape;
private Color color; private Color color;
public Tile(Shape sh, Color co) public Tile(Shape sh, Color co)
{ {

@ -16,7 +16,7 @@ namespace QwirkleClassLibrary
tiles = new List<Tile>(); 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))) foreach (Shape s in Enum.GetValues(typeof(Shape)))
{ {
@ -34,7 +34,7 @@ namespace QwirkleClassLibrary
public void RemoveTileInBag(Tile tile) 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) if (tiles[i] == tile)
{ {

Loading…
Cancel
Save