{"id":316586,"date":"2021-01-19T09:00:52","date_gmt":"2021-01-19T09:00:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=316586"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=316586","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u041f\u0440\u0438\u043c\u0430 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u0435\u0449\u0435\u0440"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/eaf\/19c\/c9f\/eaf19cc9f4abc827a9b817f86b49ac4a.gif\" width=\"150\" height=\"150\"> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/509\/601\/c4f\/509601c4fe0b4c231441d719868c8998.gif\" width=\"150\" height=\"150\"> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/76d\/9df\/033\/76d9df0332baacab46486e4b7e0701e5.gif\" width=\"150\" height=\"150\"><\/p>\n<p>  \u042f \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 \u043c\u043e\u0435\u0439 \u0438\u0433\u0440\u0435 <a href=\"https:\/\/kairumagames.com\/\" rel=\"nofollow noopener noreferrer\"><strong>In the House of Silence<\/strong><\/a>. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432, \u043e\u043d \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u044f\u043c\u0438.<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6c2\/148\/8ff\/6c21488ff07232f7a93260f3a1108367.gif\"><\/div>\n<p>  \u041a\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u041f\u0440\u0438\u043c\u0430. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Maze_generation_algorithm#Randomized_Prim&#39;s_algorithm\" rel=\"nofollow noopener noreferrer\">\u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u044f \u043f\u0440\u0438\u0432\u0451\u043b \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u041f\u0440\u0438\u043c\u0430. \u0411\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0441\u043f\u043e\u0441\u043e\u0431\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0434 \u043b\u044e\u0431\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"cpp\">\/\/ Create a 2D array to represent your map, setting all cells in the map as walls. Cell[][] map = new Cell[width][height]; for (h in height) {   for (w in width) {     map[w][h].make_wall();   } }  \/\/ Choose a random cell with odd x and y coordinates and clear it. int x = random_int(0, width \/ 2) * 2 + 1; int y = random_int(0, height \/ 2) * 2 + 1; map[x][y].clear_cell();  \/\/ Create an array and add valid cells that are two orthogonal spaces away from the cell you just cleared. Point[] to_check = new Point[0]; if (y - 2 &gt;= 0) {   to_check.append(new Point(x, y - 2)); } if (y + 2 &lt; height) {   to_check.append(new Point(x, y + 2)); } if (x - 2 &gt;= 0) {   to_check.append(new Point(x - 2, y)); } if (x + 2 &lt; width) {   to_check.append(new Point(x + 2, y)); }  \/\/ While there are cells in your growable array, choose choose one at random, clear it, and remove it from the growable array. while (to_check.size() &gt; 0) {   int index = random_int(0, to_check.size());   Point cell = to_check.get(index);   x = cell.get_x();   y = cell.get_y();   map[x][y].make_clear();   to_check.remove(index);    \/\/ The cell you just cleared needs to be connected with another clear cell.   \/\/ Look two orthogonal spaces away from the cell you just cleared until you find one that is not a wall.   \/\/ Clear the cell between them.   Direction[] d = {Direction.NORTH, Direction.SOUTH, Direction.EAST, Direction.WEST};   while (d.size() &gt; 0) {     int dir_index = random_int(0, d.size());     switch (d[dir_index]) {       case Direction.NORTH:         if (y - 2 &gt;= 0 &amp;&amp; map[x][y - 2].is_clear()) {           map[x][y - 1].make_clear();           d.remove_all();         }         break;       case Direction.SOUTH:         if (y + 2 &lt; height &amp;&amp; map[x][y + 2].is_clear()) {           map[x][y + 1].clear();           d.remove_all();         }         break;       case Direction.EAST:         if (x - 2 &gt;= 0 &amp;&amp; map[x - 2][y].is_clear()) {           map[x - 1][y].make_clear();           d.remove_all();         }         break;       case Direction.WEST:         if (x + 2 &lt; width &amp;&amp; map[x + 2][y].is_clear()) {           map[x + 1][y].make_clear();           d.remove_all();         }         break;     }     d.remove(dir_index);   }    \/\/ Add valid cells that are two orthogonal spaces away from the cell you cleared.   if (y - 2 &gt;= 0 &amp;&amp; map[x][y - 2].is_wall()) {     to_check.append(new Point(x, y - 2));   }   if (y + 2 &lt; height &amp;&amp; map[x][y + 2].is_wall()) {     to_check.append(new Point(x, y + 2));   }   if (x - 2 &gt;= 0 &amp;&amp; map[x - 2][y].is_wall()) {     to_check.append(new Point(x - 2, y));   }   if (x + 2 &lt; width &amp;&amp; map[x + 2][y].is_wall()) {     to_check.append(new Point(x + 2, y));   } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u0442\u0443\u043f\u0438\u043a\u043e\u0432<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a0e\/c9f\/6ce\/a0ec9f6ce8bdb40e3162f0c3dc58afa8.gif\" alt=\"firstdeadend.gif\"><\/div>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0443\u0434\u0430\u043b\u0438\u043c \u0442\u0443\u043f\u0438\u043a\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0439\u0434\u0451\u043c \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0443\u0441\u0442\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435 \u043a\u0430\u0440\u0442\u044b, \u0430 \u0437\u0430\u0442\u0435\u043c \u0443\u0434\u0430\u043b\u0438\u043c \u0432\u0441\u0435, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u044f\u044f \u044f\u0447\u0435\u0439\u043a\u0430, \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0441\u0442\u0435\u043d\u043e\u0439. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043b\u044e\u0431\u043e\u0435 \u043d\u0443\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439, \u043d\u043e \u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0442\u0440\u0451\u0445 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439. \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437, \u0442\u043e \u043a\u0430\u0440\u0442\u044b \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043d\u044b\u043c\u0438.<\/p>\n<pre><code class=\"cpp\">for (i in 4) {   \/\/ Get a list of all dead ends by checking the number of neighboring cells.   Cell[] dead_ends = new Cell[0];   for (h in height) {     for (w in width) {       if (map[w][h].is_clear()) {         int neighbors = 0;         if (h - 1 &gt;= 0 &amp;&amp; map[w][h - 1].is_clear()) {           neighbors++;         }         if (h + 1 &lt; height &amp;&amp; map[w][h + 1].is_clear()) {           neighbors++;         }         if (w - 1 &gt;= 0 &amp;&amp; map[w - 1][h].is_clear()) {           neighbors++;         }         if (w + 1 &lt; width &amp;&amp; map[w + 1][h].is_clear()) {           neighbors++;         }         if (neighbors &lt;= 1) {           dead_ends.append(new Point(w, h))         }     }   }    \/\/ Remove those dead ends.   for (cell in dead_ends) {     map[cell.get_x()][cell.get_y()].make_wall();   } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0412\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/61f\/71d\/d20\/61f71dd208fbe5b9d12047e2ea72b6be.gif\" alt=\"smooth.gif\"><\/div>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u044b \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043a\u0430\u0436\u0434\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443-\u0441\u0442\u0435\u043d\u0443 \u0438 \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u0432 \u043d\u0435\u0439 \u043f\u0435\u0449\u0435\u0440\u0443, \u0435\u0441\u043b\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u043d\u0435\u0439 \u0435\u0441\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043f\u0443\u0441\u0442\u044b\u0445 \u044f\u0447\u0435\u0435\u043a. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u0432\u0430 \u0438\u043b\u0438 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430: \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439, \u0442\u043e \u043a\u043e\u0440\u0438\u0434\u043e\u0440\u044b \u043d\u0430\u0447\u043d\u0443\u0442 \u0441\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c.<\/p>\n<pre><code class=\"cpp\">for (i in 3) {   \/\/ Add cell to the list if it has four or more cleared neighbors.   Cell[] new_cells = new Cell[0];   for (h in height) {     for (w in width) {       if (map[w][h].is_wall()) {         int neighbors = 0;         for (a in 3) {           for (b in 3) {             int neighbor_x = w - a;             int neighbor_y = h - b;             if (neighbor_x &gt;= 0 &amp;&amp; neighbor_x &lt; width &amp;&amp; neighbor_y &gt;= 0 &amp;&amp; neighbor_y &lt; height) {               if (map[neighbor_x][neighbor_y].is_clear()) {                 neighbors++;               }             }           }         }         if (neighbors &gt;= 4) {           new_cells.append(new Point(w, h));         }       }     }   }    \/\/ Clear those cells.   for (cell in new_cells) {     map[cell.get_x()][cell.get_y()].make_clear();   } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0421\u043d\u043e\u0432\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0442\u0443\u043f\u0438\u043a\u0438<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f3f\/2d2\/817\/f3f2d28174749f9ad3b07408db987f43.gif\"><\/div>\n<p>  \u0412 \u043a\u043e\u043d\u0446\u0435 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0442\u0443\u043f\u0438\u043a\u0438, \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435. \u042d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d, \u043d\u043e \u044f \u0443\u0431\u0438\u0440\u0430\u044e \u043b\u0438\u0448\u043d\u0438\u0435 \u0442\u0443\u043f\u0438\u043a\u0438 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u044f. \u041d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0432\u0430\u043c \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c!<\/p>\n<h2>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0451!<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b71\/673\/016\/b7167301656897f2c9245c8153a772da.gif\"><\/div>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0449\u0435\u0440\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u0431\u0435\u0437 \u0440\u0430\u0437\u0440\u044b\u0432\u043e\u0432. \u041c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0441 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439!<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/537630\/\"> https:\/\/habr.com\/ru\/post\/537630\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/eaf\/19c\/c9f\/eaf19cc9f4abc827a9b817f86b49ac4a.gif\" width=\"150\" height=\"150\"> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/509\/601\/c4f\/509601c4fe0b4c231441d719868c8998.gif\" width=\"150\" height=\"150\"> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/76d\/9df\/033\/76d9df0332baacab46486e4b7e0701e5.gif\" width=\"150\" height=\"150\"><\/p>\n<p>  \u042f \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 \u043c\u043e\u0435\u0439 \u0438\u0433\u0440\u0435 <a href=\"https:\/\/kairumagames.com\/\" rel=\"nofollow noopener noreferrer\"><strong>In the House of Silence<\/strong><\/a>. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432, \u043e\u043d \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u044f\u043c\u0438.<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6c2\/148\/8ff\/6c21488ff07232f7a93260f3a1108367.gif\"><\/div>\n<p>  \u041a\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u041f\u0440\u0438\u043c\u0430. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Maze_generation_algorithm#Randomized_Prim&#39;s_algorithm\" rel=\"nofollow noopener noreferrer\">\u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u044f \u043f\u0440\u0438\u0432\u0451\u043b \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u041f\u0440\u0438\u043c\u0430. \u0411\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0441\u043f\u043e\u0441\u043e\u0431\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0434 \u043b\u044e\u0431\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-316586","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/316586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316586"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/316586\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}