Example #1
0
    public ReverseLBlock(int positionX, int positionY)
    {
        var middleLetters = LetterGenerator.GetSubstringFromCommands(3);
        var bottomLetters = LetterGenerator.GetSubstringFromCommandsIncludingLetterAtStart(2, middleLetters[2]);

        blockLetters = new char[, ] {
            { ' ', middleLetters[0], ' ' },
            { ' ', middleLetters[1], ' ' },
            { bottomLetters[1], middleLetters[2], ' ' }
        };
        localOriginX     = 1;
        localOriginY     = 1;
        upperLeftCornerX = 0;
        upperleftCornerY = 0;
        this.positionX   = positionX;
        this.positionY   = positionY;
    }
Example #2
0
    public SquareBlock(int positionX, int positionY)
    {
        var topLetters    = LetterGenerator.GetSubstringFromCommands(2);
        var leftLetters   = LetterGenerator.GetSubstringFromCommandsIncludingLetterAtStart(2, topLetters[0]);
        var bottomLetters = LetterGenerator.GetSubstringFromCommandsIncludingLetterAtStart(2, leftLetters[1]);

        blockLetters = new char[, ] {
            { topLetters[0], topLetters[1] }, { bottomLetters[0], bottomLetters[1] }
        };
        localOriginX     = 0;
        localOriginY     = 0;
        upperLeftCornerX = 0;
        upperleftCornerY = 0;
        this.positionX   = positionX;
        this.positionY   = positionY;

        RandomizeLetters();
    }