private void InitiatePiece(Piece p, int die) { if (die == 6) { int x = 0, y = 0; switch (p.Color) { case "red": x = 4; y = 0; break; case "blue": x = 0; y = 0; break; default : break; } MovePiece(p, x, y); } thePiece.IsPlayable = true; }
private void MovePiece(Piece p, int x, int y) { thePiece.XCoord = x; thePiece.YCoord = y; }
public MainWindow() { thePiece = new Piece(0, 0, "red"); thePiece.IsPlayable = true; InitializeComponent(); }