{"id":762,"date":"2023-03-09T08:51:37","date_gmt":"2023-03-09T08:51:37","guid":{"rendered":"https:\/\/dijix.com.ua\/blog\/?p=762"},"modified":"2023-03-09T08:51:37","modified_gmt":"2023-03-09T08:51:37","slug":"kak-sdelat-tetris-na-c","status":"publish","type":"post","link":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/","title":{"rendered":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#]"},"content":{"rendered":"<p>\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 \u043d\u0430 C# \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043f\u0430\u0434\u0430\u044e\u0447\u0438\u0445 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043b\u043e\u0433\u0456\u043a\u0438 \u0434\u043b\u044f \u0457\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0456 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0434\u0432\u043e\u0432\u0438\u043c\u0456\u0440\u043d\u0438\u0439 \u043c\u0430\u0441\u0438\u0432 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u041c\u0430\u0441\u0438\u0432 \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u043c\u0430\u0442\u0438 \u0444\u0456\u043a\u0441\u043e\u0432\u0430\u043d\u0438\u0439 \u0440\u043e\u0437\u043c\u0456\u0440, \u0456 \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0431\u0443\u0434\u0435 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438\u0441\u044f \u0437 \u0440\u043e\u0437\u043c\u0456\u0440\u0430\u043c\u0438. \u041a\u043e\u0436\u043d\u0430 \u043a\u043b\u0456\u0442\u0438\u043d\u0430 \u0432 \u043c\u0430\u0441\u0438\u0432\u0456 \u043c\u043e\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438 \u043a\u043b\u0456\u0442\u0438\u043d\u0443 \u043d\u0430 \u0456\u0433\u0440\u043e\u0432\u0456\u0439 \u0434\u043e\u0448\u0446\u0456, \u0456 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0440\u0456\u0437\u043d\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0440\u0456\u0437\u043d\u0438\u0445 \u0441\u0442\u0430\u043d\u0456\u0432 \u043a\u043b\u0456\u0442\u0438\u043d\u0438 (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043f\u043e\u0440\u043e\u0436\u043d\u044f, \u0437\u0430\u0439\u043d\u044f\u0442\u0430 \u0442\u0435\u0442\u0440\u043e\u043c\u0456\u043d\u043e \u0442\u043e\u0449\u043e).<\/p>\n<p>\u0414\u0430\u043b\u0456, \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u0430\u0431\u0456\u0440 \u0456\u0437 \u0441\u0435\u043c\u0438 \u0444\u0456\u0433\u0443\u0440 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e (I, J, L, O, S, T, Z), \u043a\u043e\u0436\u043d\u0430 \u0437 \u044f\u043a\u0438\u0445 \u0441\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0437 \u0447\u043e\u0442\u0438\u0440\u044c\u043e\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0456\u0432. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u044f\u0432\u0438\u0442\u0438 \u043a\u043e\u0436\u043d\u0443 \u0444\u0456\u0433\u0443\u0440\u0443 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u0456\u0432 \u0443 \u0432\u0438\u0433\u043b\u044f\u0434\u0456 \u0434\u0432\u043e\u0432\u0438\u043c\u0456\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0438\u0432\u0443 \u0446\u0456\u043b\u0438\u0445 \u0447\u0438\u0441\u0435\u043b, \u0434\u0435 0 \u043e\u0437\u043d\u0430\u0447\u0430\u0454 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u0430 1 &#8211; \u0437\u0430\u043f\u043e\u0432\u043d\u0435\u043d\u0438\u0439. \u0412\u0430\u043c \u0442\u0430\u043a\u043e\u0436 \u0437\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0441\u0442\u0430\u043d \u043e\u0431\u0435\u0440\u0442\u0430\u043d\u043d\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e.<\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0443\u0439\u0442\u0435 \u0456 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0430\u0439\u0442\u0435 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e: \u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u043e\u0432\u0435 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e \u0443 \u0432\u0435\u0440\u0445\u043d\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0456 \u0434\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u0433\u0440\u0430\u0432\u0446\u0435\u0432\u0456 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0430\u0442\u0438 \u0439\u043e\u0433\u043e \u0432\u043b\u0456\u0432\u043e, \u0432\u043f\u0440\u0430\u0432\u043e \u0456 \u0432\u043d\u0438\u0437. \u0414\u043b\u044f \u0446\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u044c \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0437 \u043a\u043b\u0430\u0432\u0456\u0430\u0442\u0443\u0440\u0438. \u041a\u043e\u043b\u0438 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435 \u0437\u043c\u043e\u0436\u0435 \u0440\u0443\u0445\u0430\u0442\u0438\u0441\u044f \u0432\u043d\u0438\u0437, \u0437\u0430\u0444\u0456\u043a\u0441\u0443\u0439\u0442\u0435 \u0439\u043e\u0433\u043e \u043d\u0430 \u0456\u0433\u0440\u043e\u0432\u043e\u043c\u0443 \u043f\u043e\u043b\u0456 \u0442\u0430 \u0437\u0433\u0435\u043d\u0435\u0440\u0443\u0439\u0442\u0435 \u043d\u043e\u0432\u0435 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e.<\/p>\n<p>\u0417\u0430\u0433\u0430\u043b\u043e\u043c, \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 &#8211; \u0446\u0435 \u043d\u0435 \u043d\u0430\u0439\u043c\u0435\u043d\u0448\u0435 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f. \u041d\u0438\u0436\u0447\u0435 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043e \u043f\u043e\u0432\u043d\u0438\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u043a\u043e\u0434\u0443 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0442\u0440\u0438\u0441\u0443:<\/p>\n<pre class=\"lang:default decode:true \">class Program\r\n{\r\n    const int TetrisWidth = 10;\r\n    const int TetrisHeight = 16;\r\n    const int InfoPanelWidth = 10;\r\n    const int GameWidth = TetrisWidth + InfoPanelWidth + 3;\r\n    const int GameHeight = TetrisHeight + 2;\r\n    const char BorderCharacter = (char)219;\r\n    static int Score = 0;\r\n    static int Level = 1; \/\/ Max level: 9\r\n    #region Figures\r\n    static bool[][,] Figures = new bool[8][,]\r\n    {\r\n        new bool[,] \/\/ ----\r\n        {\r\n            { true, true, true, true }\r\n        },\r\n        new bool[,] \/\/ I\r\n        {\r\n            { true },\r\n            { true },\r\n            { true },\r\n            { true }\r\n        },\r\n        new bool[,] \/\/ J\r\n        {\r\n            { true, true, true },\r\n            { false, false, true }\r\n        },\r\n        new bool[,] \/\/ L\r\n        {\r\n            { true, true, true },\r\n            { true, false, false }\r\n        },\r\n        new bool[,] \/\/ O\r\n        {\r\n            { true, true },\r\n            { true, true }\r\n        },\r\n        new bool[,] \/\/ S\r\n        {\r\n            { false, true, true },\r\n            { true, true, false }\r\n        },\r\n        new bool[,] \/\/ T\r\n        {\r\n            { true, true, true },\r\n            { false, true, false }\r\n        },\r\n        new bool[,] \/\/ Z\r\n        {\r\n            { true, true, false },\r\n            { false, true, true }\r\n        },\r\n    };\r\n    #endregion\r\n    static bool[,] currentFigure;\r\n    static int currentFigureRow = 0;\r\n    static int currentFigureCol = 4;\r\n    static bool[,] nextFigure;\r\n    static Random random = new Random();\r\n    static bool[,] gameState = new bool[TetrisHeight, TetrisWidth];\r\n    static int[] scorePerLines = { 10, 30, 50, 80 };\r\n    static int[] speedPerLevel = { 800, 700, 600, 500, 400, 300, 200, 100, 50 };\r\n\r\n    static void Main()\r\n    {\r\n        Console.CursorVisible = false;\r\n        Console.Title = \"Tetris\";\r\n        Console.WindowWidth = GameWidth;\r\n        Console.BufferWidth = GameWidth;\r\n        Console.WindowHeight = GameHeight + 1;\r\n        Console.BufferHeight = GameHeight + 1;\r\n\r\n        StartNewGame();\r\n        PrintBorders();\r\n\r\n        Task.Run(() =&gt;\r\n        {\r\n            while (true)\r\n            {\r\n                PlaySound();\r\n            }\r\n        });\r\n\r\n        while (true)\r\n        {\r\n            if (Console.KeyAvailable)\r\n            {\r\n                var key = Console.ReadKey();\r\n                if (key.Key == ConsoleKey.LeftArrow)\r\n                {\r\n                    if (currentFigureCol &gt; 1)\r\n                    {\r\n                        currentFigureCol--;\r\n                    }\r\n                }\r\n                else if (key.Key == ConsoleKey.RightArrow)\r\n                {\r\n                    if (currentFigureCol + currentFigure.GetLength(1) - 1 &lt; TetrisWidth)\r\n                    {\r\n                        currentFigureCol++;\r\n                    }\r\n                }\r\n            }\r\n\r\n            if (CollisionDetection())\r\n            {\r\n                PlaceCurrentFigure();\r\n                int removedLines = CheckForFullLines();\r\n\r\n                if (removedLines &gt; 0)\r\n                {\r\n                    Score += scorePerLines[removedLines - 1] * Level;\r\n                }\r\n\r\n                Level = Score \/ 1000 + 1;\r\n\r\n                currentFigure = nextFigure;\r\n                nextFigure = Figures[random.Next(0, Figures.Length)];\r\n                currentFigureRow = 1;\r\n                currentFigureCol = 4;\r\n            }\r\n            else\r\n            {\r\n                currentFigureRow++;\r\n            }\r\n\r\n            PrintInfoPanel();\r\n\r\n            PrintGameField();\r\n\r\n            PrintBorders();\r\n\r\n            PrintFigure(currentFigure,\r\n                currentFigureRow, currentFigureCol);\r\n\r\n            Thread.Sleep(speedPerLevel[Level - 1]);\r\n        }\r\n    }\r\n\r\n    static int CheckForFullLines()\r\n    {\r\n        int linesRemoved = 0;\r\n\r\n        for (int row = 0; row &lt; gameState.GetLength(0); row++)\r\n        {\r\n            bool isFullLine = true;\r\n            for (int col = 0; col &lt; gameState.GetLength(1); col++)\r\n            {\r\n                if (gameState[row, col] == false)\r\n                {\r\n                    isFullLine = false;\r\n                    break;\r\n                }\r\n            }\r\n\r\n            if (isFullLine)\r\n            {\r\n                for (int nextLine = row - 1; nextLine &gt;= 0; nextLine--)\r\n                {\r\n                    if (row &lt; 0)\r\n                    {\r\n                        continue;\r\n                    }\r\n\r\n                    for (int colFromNextLine = 0; colFromNextLine &lt; gameState.GetLength(1); colFromNextLine++)\r\n                    {\r\n                        gameState[nextLine + 1, colFromNextLine] =\r\n                            gameState[nextLine, colFromNextLine];\r\n                    }\r\n                }\r\n\r\n                for (int colLastLine = 0; colLastLine &lt; gameState.GetLength(1); colLastLine++)\r\n                {\r\n                    gameState[0, colLastLine] = false;\r\n                }\r\n\r\n                linesRemoved++;\r\n            }\r\n        }\r\n\r\n        return linesRemoved;\r\n    }\r\n\r\n    static void PlaceCurrentFigure()\r\n    {\r\n        for (int figRow = 0; figRow &lt; currentFigure.GetLength(0); figRow++)\r\n        {\r\n            for (int figCol = 0; figCol &lt; currentFigure.GetLength(1); figCol++)\r\n            {\r\n                var row = currentFigureRow - 1 + figRow;\r\n                var col = currentFigureCol - 1 + figCol;\r\n\r\n                if (currentFigure[figRow, figCol])\r\n                {\r\n                    gameState[row, col] = true;\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    static bool CollisionDetection()\r\n    {\r\n        var currentFigureLowestRow =\r\n            currentFigureRow +\r\n            currentFigure.GetLength(0);\r\n\r\n        if (currentFigureLowestRow &gt; TetrisHeight)\r\n        {\r\n            return true;\r\n        }\r\n\r\n        for (int figRow = 0; figRow &lt; currentFigure.GetLength(0); figRow++)\r\n        {\r\n            for (int figCol = 0; figCol &lt; currentFigure.GetLength(1); figCol++)\r\n            {\r\n                var row = currentFigureRow + figRow;\r\n                var col = currentFigureCol - 1 + figCol;\r\n\r\n                if (row &lt; 0)\r\n                {\r\n                    continue;\r\n                }\r\n\r\n                if (gameState[row, col] == true &amp;&amp;\r\n                    currentFigure[figRow, figCol] == true)\r\n                {\r\n                    return true;\r\n                }\r\n            }\r\n        }\r\n\r\n        return false;\r\n    }\r\n\r\n    static void PrintGameField()\r\n    {\r\n        for (int row = 1; row &lt;= TetrisHeight; row++)\r\n        {\r\n            for (int col = 1; col &lt;= TetrisWidth; col++)\r\n            {\r\n                if (gameState[row - 1, col - 1] == true)\r\n                {\r\n                    Print(row, col, '*');\r\n                }\r\n                else\r\n                {\r\n                    Print(row, col, ' ');\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    static void PrintFigure(bool[,] figure,\r\n        int row, int col)\r\n    {\r\n        for (int x = 0; x &lt; figure.GetLength(0); x++)\r\n        {\r\n            for (int y = 0; y &lt; figure.GetLength(1); y++)\r\n            {\r\n                if (figure[x, y] == true)\r\n                {\r\n                    Print(row + x, col + y, '*');\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    static void StartNewGame()\r\n    {\r\n        currentFigure = Figures[\r\n            random.Next(0, Figures.Length)];\r\n        nextFigure = Figures[\r\n            random.Next(0, Figures.Length)];\r\n    }\r\n\r\n    static void PrintInfoPanel()\r\n    {\r\n        Print(1, TetrisWidth + 4, \"Next:\");\r\n        for (int i = 2; i &lt;= 5; i++)\r\n        {\r\n            Print(i, TetrisWidth + 2, \"         \");\r\n        }\r\n\r\n        PrintFigure(nextFigure, 2, TetrisWidth + 5);\r\n\r\n        Print(6, TetrisWidth + 4, \"Score:\");\r\n        int scoreStartposition = InfoPanelWidth \/ 2 - (Score.ToString().Length - 1) \/ 2;\r\n        scoreStartposition = scoreStartposition + TetrisWidth + 2;\r\n        Print(7, scoreStartposition - 1, Score);\r\n\r\n        Print(9, TetrisWidth + 4, \"Level:\");\r\n        Print(10, TetrisWidth + 6, Level);\r\n\r\n        Print(12, TetrisWidth + 3, \"Controls\");\r\n        Print(13, TetrisWidth + 2, \"    ^     \");\r\n        Print(14, TetrisWidth + 2, \"   &lt; &gt;    \");\r\n        Print(15, TetrisWidth + 2, \"    v     \");\r\n        Print(16, TetrisWidth + 2, \"  space   \");\r\n    }\r\n\r\n    static void PrintBorders()\r\n    {\r\n        for (int col = 0; col &lt; GameWidth; col++)\r\n        {\r\n            Print(0, col, BorderCharacter);\r\n            Print(GameHeight - 1, col, BorderCharacter);\r\n        }\r\n\r\n        for (int row = 0; row &lt; GameHeight; row++)\r\n        {\r\n            Print(row, 0, BorderCharacter);\r\n            Print(row, TetrisWidth + 1, BorderCharacter);\r\n            Print(row, TetrisWidth + 1 + InfoPanelWidth + 1, BorderCharacter);\r\n        }\r\n    }\r\n\r\n    static void Print(int row, int col, object data)\r\n    {\r\n        Console.ForegroundColor = ConsoleColor.Yellow;\r\n        Console.SetCursorPosition(col, row);\r\n        Console.Write(data);\r\n    }\r\n\r\n    static void PlaySound()\r\n    {\r\n        \/\/If you want\r\n    }\r\n}<\/pre>\n<p>\u042f\u043a\u0449\u043e \u0432\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u043c\u0443\u0437\u0438\u0447\u043d\u0438\u0439 \u0441\u0443\u043f\u0440\u043e\u0432\u0456\u0434 \u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0456 \u0433\u0440\u0438, \u0437\u043c\u0456\u043d\u0456\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <strong>PlaySound<\/strong>, \u0442\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c:<\/p>\n<pre class=\"lang:default decode:true \">static void PlaySound()\r\n    {\r\n        const int soundLenght = 100;\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(990, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght);\r\n        Console.Beep(1188, soundLenght);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(990, soundLenght * 2);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1188, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(990, soundLenght * 6);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 4);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1056, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Thread.Sleep(soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 4);\r\n        Console.Beep(1408, soundLenght * 2);\r\n        Console.Beep(1760, soundLenght * 4);\r\n        Console.Beep(1584, soundLenght * 2);\r\n        Console.Beep(1408, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght * 6);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1188, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(990, soundLenght * 4);\r\n        Console.Beep(990, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 4);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1056, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Thread.Sleep(soundLenght * 4);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(990, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght);\r\n        Console.Beep(1188, soundLenght);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(990, soundLenght * 2);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1188, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(990, soundLenght * 6);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 4);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1056, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Thread.Sleep(soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 4);\r\n        Console.Beep(1408, soundLenght * 2);\r\n        Console.Beep(1760, soundLenght * 4);\r\n        Console.Beep(1584, soundLenght * 2);\r\n        Console.Beep(1408, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght * 6);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1188, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(990, soundLenght * 4);\r\n        Console.Beep(990, soundLenght * 2);\r\n        Console.Beep(1056, soundLenght * 2);\r\n        Console.Beep(1188, soundLenght * 4);\r\n        Console.Beep(1320, soundLenght * 4);\r\n        Console.Beep(1056, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 4);\r\n        Thread.Sleep(soundLenght * 4);\r\n        Console.Beep(660, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 8);\r\n        Console.Beep(594, soundLenght * 8);\r\n        Console.Beep(495, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 8);\r\n        Console.Beep(440, soundLenght * 8);\r\n        Console.Beep(419, soundLenght * 8);\r\n        Console.Beep(495, soundLenght * 8);\r\n        Console.Beep(660, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 8);\r\n        Console.Beep(594, soundLenght * 8);\r\n        Console.Beep(495, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 4);\r\n        Console.Beep(660, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 8);\r\n        Console.Beep(838, soundLenght * 16);\r\n        Console.Beep(660, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 8);\r\n        Console.Beep(594, soundLenght * 8);\r\n        Console.Beep(495, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 8);\r\n        Console.Beep(440, soundLenght * 8);\r\n        Console.Beep(419, soundLenght * 8);\r\n        Console.Beep(495, soundLenght * 8);\r\n        Console.Beep(660, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 8);\r\n        Console.Beep(594, soundLenght * 8);\r\n        Console.Beep(495, soundLenght * 8);\r\n        Console.Beep(528, soundLenght * 4);\r\n        Console.Beep(660, soundLenght * 4);\r\n        Console.Beep(880, soundLenght * 8);\r\n        Console.Beep(838, soundLenght * 16);\r\n    }<\/pre>\n<p>\u041f\u0456\u0434\u0441\u0443\u043c\u043a\u043e\u0432\u0438\u0439 \u0434\u043e\u0434\u0430\u0442\u043e\u043a \u043c\u0430\u0454 \u0442\u0430\u043a\u0438\u0439 \u0432\u0438\u0433\u043b\u044f\u0434:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-759\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/1-min-4.png\" alt=\"\u0442\u0435\u0442\u0440\u0438\u0441 \u043d\u0430 c#\" width=\"206\" height=\"338\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/1-min-4.png 206w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/1-min-4-183x300.png 183w\" sizes=\"auto, (max-width: 206px) 100vw, 206px\" \/><\/p>\n<p>\u042f \u0441\u043f\u043e\u0434\u0456\u0432\u0430\u044e\u0441\u044f, \u0449\u043e \u0432\u0430\u043c \u0441\u043f\u043e\u0434\u043e\u0431\u0430\u043b\u043e\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u0438 \u0446\u044e \u0441\u0442\u0430\u0442\u0442\u044e, \u0456 \u0432\u043e\u043d\u0430 \u0432\u0438\u044f\u0432\u0438\u043b\u0430\u0441\u044f \u043b\u0435\u0433\u043a\u043e\u044e \u0434\u043b\u044f \u0440\u043e\u0437\u0443\u043c\u0456\u043d\u043d\u044f. \u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0434\u0430\u0439\u0442\u0435 \u043c\u0435\u043d\u0456 \u0437\u043d\u0430\u0442\u0438, \u044f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u044f\u043a\u0456\u0441\u044c \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456 \u0430\u0431\u043e \u0432\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f.<\/p>\n<p>\u0422\u0430\u043a \u0441\u0430\u043c\u043e \u0432\u0430\u043c \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0446\u0456\u043a\u0430\u0432\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044f \u0441\u0442\u0430\u0442\u0442\u044f &#8211; <a href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-dinamicheskij-massiv-c\/\">\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0434\u0438\u043d\u0430\u043c\u0456\u0447\u043d\u0438\u0439 \u043c\u0430\u0441\u0438\u0432<\/a>.<\/p>\n<hr \/>\n<h4><strong>\u0412\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u043d\u0430\u0432\u0447\u0438\u0442\u0438\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u0438 \u043a\u043e\u0434 \u043c\u043e\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f C#?<\/strong><\/h4>\n<p>\u0421\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0440\u0456\u0437\u043d\u0456 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u0456 \u0441\u0438\u0441\u0442\u0435\u043c\u0438, \u0449\u043e \u0441\u043a\u043b\u0430\u0434\u0430\u044e\u0442\u044c\u0441\u044f \u0437 \u0441\u0430\u0439\u0442\u0456\u0432, \u043c\u043e\u0431\u0456\u043b\u044c\u043d\u0438\u0445 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432, \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u0438\u0445 \u0434\u043e\u0434\u0430\u0442\u043a\u0456\u0432, \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u0431\u043e\u0442\u0456\u0432 \u0442\u043e\u0449\u043e.<\/p>\n<p><a href=\"https:\/\/dijix.com.ua\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-94 size-full\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand.png\" alt=\"\" width=\"355\" height=\"77\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand.png 355w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand-300x65.png 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u044c\u0442\u0435 \u0434\u043e \u043d\u0430\u0441 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 Dijix \u0456 \u043e\u0437\u043d\u0430\u0439\u043e\u043c\u0442\u0435\u0441\u044f \u0437 \u0443\u043c\u043e\u0432\u0430\u043c\u0438 \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f, \u043c\u0438 \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u0456\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0442\u0456\u043b\u044c\u043a\u0438 \u043d\u0430 \u0456\u043d\u0434\u0438\u0432\u0456\u0434\u0443\u0430\u043b\u044c\u043d\u0438\u0445 \u0437\u0430\u043d\u044f\u0442\u0442\u044f\u0445, \u044f\u043a \u0434\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0456\u0432\u0446\u0456\u0432, \u0442\u0430\u043a \u0456 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0443\u043d\u0443\u0442\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0456\u0441\u0442\u0456\u0432. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u044f\u0442\u0438 \u044f\u043a \u043e\u0434\u043d\u0435 \u0437\u0430\u043d\u044f\u0442\u0442\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0430\u0446\u044e\u0432\u0430\u043d\u043d\u044f \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u0449\u043e \u0432\u0430\u0441 \u0446\u0456\u043a\u0430\u0432\u0438\u0442\u044c, \u0442\u0430\u043a \u0456 \u043a\u0456\u043b\u044c\u043a\u0430, \u0434\u043b\u044f \u0431\u0456\u043b\u044c\u0448 \u0449\u0456\u043b\u044c\u043d\u043e\u0457 \u0440\u043e\u0431\u043e\u0442\u0438. \u0417\u0430\u0432\u0434\u044f\u043a\u0438 \u043e\u0441\u043e\u0431\u0438\u0441\u0442\u043e\u043c\u0443 \u043a\u0430\u0431\u0456\u043d\u0435\u0442\u0443, \u043a\u043e\u0436\u0435\u043d \u0441\u0442\u0443\u0434\u0435\u043d\u0442 \u043f\u0456\u0434\u0432\u0438\u0449\u0438\u0442\u044c \u044f\u043a\u0456\u0441\u0442\u044c \u0441\u0432\u043e\u0433\u043e \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f, \u0443 \u0432\u0430\u0448\u043e\u043c\u0443 \u0440\u043e\u0437\u043f\u043e\u0440\u044f\u0434\u0436\u0435\u043d\u043d\u0456:<\/p>\n<ul>\n<li>\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b\u0443<\/li>\n<li>\u0422\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0456 \u0441\u0442\u0430\u0442\u0442\u0456<\/li>\n<li>\u0411\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430 \u043a\u043d\u0438\u0433<\/li>\n<li>\u041e\u043d\u043b\u0430\u0439\u043d \u0442\u0435\u0441\u0442\u0443\u0432\u0430\u043d\u043d\u044f<\/li>\n<li>\u0421\u043f\u0456\u043b\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u0437\u0430\u043a\u0440\u0438\u0442\u0438\u0445 \u0433\u0440\u0443\u043f\u0430\u0445<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: right;\"><a href=\"https:\/\/dijix.com.ua\/uk\/\">https:\/\/dijix.com.ua<\/a><\/p>\n<p style=\"text-align: right;\"><a href=\"https:\/\/ms.dijix.com.ua\/\">\u0416\u0438\u0432\u0438 \u0443 \u0441\u0432\u043e\u0454\u043c\u0443 \u0441\u0432\u0456\u0442\u0456, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0439 \u0443 \u043d\u0430\u0448\u043e\u043c\u0443<\/a>.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 \u043d\u0430 C# \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043f\u0430\u0434\u0430\u044e\u0447\u0438\u0445 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043b\u043e\u0433\u0456\u043a\u0438 \u0434\u043b\u044f \u0457\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0456 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f. \u0414\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0434\u0432\u043e\u0432\u0438\u043c\u0456\u0440\u043d\u0438\u0439 \u043c\u0430\u0441\u0438\u0432&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\">Continue reading<span class=\"screen-reader-text\">\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#]<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":760,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"uk","_original_post":"https:\/\/dijix.com.ua\/blog\/?p=757","footnotes":""},"categories":[12],"tags":[],"class_list":["post-762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kak-sdelat-na-c","uk","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#] - Dijix - \u0411\u043b\u043e\u0433<\/title>\r\n<meta name=\"description\" content=\"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 \u043d\u0430 C# \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043f\u0430\u0434\u0430\u044e\u0447\u0438\u0445 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043b\u043e\u0433\u0456\u043a\u0438 \u0434\u043b\u044f \u0457\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0456 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\" \/>\r\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#] - Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Dijixs\" \/>\r\n<meta property=\"article:published_time\" content=\"2023-03-09T08:51:37+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/387403-min.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"512\" \/>\r\n\t<meta property=\"og:image:height\" content=\"512\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u0445\u0432\u0438\u043b\u0438\u043d\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\"},\"author\":{\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\"},\"headline\":\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#]\",\"datePublished\":\"2023-03-09T08:51:37+00:00\",\"dateModified\":\"2023-03-09T08:51:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\"},\"wordCount\":342,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"articleSection\":[\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430 C#?\"],\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\",\"name\":\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#] - Dijix - \u0411\u043b\u043e\u0433\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\"},\"datePublished\":\"2023-03-09T08:51:37+00:00\",\"dateModified\":\"2023-03-09T08:51:37+00:00\",\"description\":\"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 \u043d\u0430 C# \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043f\u0430\u0434\u0430\u044e\u0447\u0438\u0445 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043b\u043e\u0433\u0456\u043a\u0438 \u0434\u043b\u044f \u0457\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0456 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f.\",\"breadcrumb\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/dijix.com.ua\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"description\":\"\ud83d\udc9c\",\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"uk\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"contentUrl\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"width\":159,\"height\":92,\"caption\":\"Dijix - \u0411\u043b\u043e\u0433\"},\"image\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Dijixs\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\",\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"caption\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\"},\"sameAs\":[\"https:\/\/dijix.com.ua\/blog\"],\"url\":\"https:\/\/dijix.com.ua\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#] - Dijix - \u0411\u043b\u043e\u0433","description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 \u043d\u0430 C# \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043f\u0430\u0434\u0430\u044e\u0447\u0438\u0445 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043b\u043e\u0433\u0456\u043a\u0438 \u0434\u043b\u044f \u0457\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0456 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/","og_locale":"uk_UA","og_type":"article","og_title":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#] - Dijix - \u0411\u043b\u043e\u0433","og_url":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/","og_site_name":"Dijix - \u0411\u043b\u043e\u0433","article_publisher":"https:\/\/www.facebook.com\/Dijixs","article_published_time":"2023-03-09T08:51:37+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/387403-min.png","type":"image\/png"}],"author":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f":"10 \u0445\u0432\u0438\u043b\u0438\u043d"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#article","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/"},"author":{"name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d"},"headline":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#]","datePublished":"2023-03-09T08:51:37+00:00","dateModified":"2023-03-09T08:51:37+00:00","mainEntityOfPage":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/"},"wordCount":342,"commentCount":0,"publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"articleSection":["\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430 C#?"],"inLanguage":"uk","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/","url":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/","name":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#] - Dijix - \u0411\u043b\u043e\u0433","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/#website"},"datePublished":"2023-03-09T08:51:37+00:00","dateModified":"2023-03-09T08:51:37+00:00","description":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0435\u0442\u0440\u0438\u0441\u0443 \u043d\u0430 C# \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043f\u0430\u0434\u0430\u044e\u0447\u0438\u0445 \u0442\u0435\u0442\u0440\u0430\u043c\u0456\u043d\u043e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043b\u043e\u0433\u0456\u043a\u0438 \u0434\u043b\u044f \u0457\u0445 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0456 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f.","breadcrumb":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-tetris-na-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/dijix.com.ua\/blog\/"},{"@type":"ListItem","position":2,"name":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0442\u0435\u0442\u0440\u0456\u0441 \u043d\u0430 [C#]"}]},{"@type":"WebSite","@id":"https:\/\/dijix.com.ua\/blog\/#website","url":"https:\/\/dijix.com.ua\/blog\/","name":"Dijix - \u0411\u043b\u043e\u0433","description":"\ud83d\udc9c","publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"uk"},{"@type":"Organization","@id":"https:\/\/dijix.com.ua\/blog\/#organization","name":"Dijix - \u0411\u043b\u043e\u0433","url":"https:\/\/dijix.com.ua\/blog\/","logo":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","contentUrl":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","width":159,"height":92,"caption":"Dijix - \u0411\u043b\u043e\u0433"},"image":{"@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Dijixs"]},{"@type":"Person","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d","name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","image":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","caption":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430"},"sameAs":["https:\/\/dijix.com.ua\/blog"],"url":"https:\/\/dijix.com.ua\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/comments?post=762"}],"version-history":[{"count":1,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":763,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/762\/revisions\/763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media\/760"}],"wp:attachment":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media?parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/categories?post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/tags?post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}