/// <summary> /// Default constructor /// </summary> public SquareModel(int index) { Index = index; Piece = new GamePieceModel(); Shape = Regionshapes.Undefined; }
/// <summary> /// Adds a piece at the specified index /// </summary> /// <param name="index">The index on the gameboard</param> /// <param name="piece">The piece to add</param> public void AddPiece(int index, GamePieceModel piece) { Squares[index].Piece = piece; }