adding class Tile and enum for Shape and Color

test_old_branch
Remy PORTET 1 year ago
parent a6c84f779f
commit dfea32d9bb

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary
{
public enum Color
{
Red,
Blue,
Green,
Yellow,
Orange,
Purple
}
}

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary
{
public enum Shape
{
Square,
Round,
Rhombus,
Club,
Shuriken,
Star
}
}

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary
{
public class Tile
{
private Shape shape;
private Color color;
public Tile(Shape sh, Color co)
{
shape = sh;
color = co;
Console.WriteLine("A tile of shape " + shape + " and color " + color + " has been created.\n");
}
}
}
Loading…
Cancel
Save