Пример #1
0
    private bool TryToDisplace(Point displacement)
    {
        List <Point> destination = activeTetromino.GetDisplacedPoints(displacement);

        bool canDisplace = blockField.AreCellsEmpty(destination);

        if (canDisplace)
        {
            activeTetromino.Displace(displacement);
        }

        return(canDisplace);
    }