{"id":261198,"date":"2015-07-11T20:04:01","date_gmt":"2015-07-11T16:04:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=261198"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=261198","title":{"rendered":"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u043f\u043e \u0433\u0440\u0430\u0444\u0443"},"content":{"rendered":"<p>             <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/969\/201\/28e\/96920128e9364d66b7d28258b20e329f.png\" alt=\"image\"\/><\/p>\n<p>  \u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432.<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u00ab\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u00bb \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0443\u0442\u0438.<\/p>\n<p>  \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0431\u044d\u043a\u0442\u0440\u0435\u043a\u0438\u043d\u0433\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b \u0431\u0435\u0437 \u0446\u0438\u043a\u043b\u043e\u0432, \u0438\u043c\u0435\u044e\u0449\u0438\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0442\u043e\u0447\u043a\u0430\u043c\u0438. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043d \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 <a href=\"http:\/\/habrahabr.ru\/post\/176671\/\">\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c \u042d\u0439\u043b\u0435\u0440\u0430<\/a> \u0438\u043b\u0438 \u041a\u0440\u0443\u0441\u043a\u0430\u043b\u0430, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0435\u0442\u0432\u0438\u0441\u0442\u044b\u0435 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b \u0441 \u043e\u0447\u0435\u043d\u044c \u0434\u043b\u0438\u043d\u043d\u044b\u043c\u0438 \u0442\u0443\u043f\u0438\u043a\u043e\u0432\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>  \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u2014 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432, \u0447\u0442\u043e \u0438 \u0441\u0442\u0430\u043b\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<br \/>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0421\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 GitHub \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 GNU GPLv3.<br \/>  \u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<h5>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/h5>\n<p>  \u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043b\u0435\u0442\u043a\u0438 \u0435\u0441\u0442\u044c \u0441\u0442\u0435\u043d\u043a\u0438 \u0441\u043e \u0432\u0441\u0435\u0445 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0441\u0442\u043e\u0440\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0434\u0435\u043b\u044f\u044e\u0442 \u0435\u0435 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u043a.<\/p>\n<p>  1. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435 \u0435\u0435 \u043a\u0430\u043a \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u0443\u044e.<br \/>  2. \u041f\u043e\u043a\u0430 \u0435\u0441\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0435\u0442\u043a\u0438<br \/>  \u2003\u20031. \u0415\u0441\u043b\u0438 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043a\u043b\u0435\u0442\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u00ab\u0441\u043e\u0441\u0435\u0434\u0435\u0439\u00bb<br \/>  \u2003\u2003\u2003\u20031. \u041f\u0440\u043e\u0442\u043e\u043b\u043a\u043d\u0438\u0442\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0432 \u0441\u0442\u0435\u043a<br \/>  \u2003\u2003\u2003\u20032. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445<br \/>  \u2003\u2003\u2003\u20033. \u0423\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0442\u0435\u043d\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u043b\u0435\u0442\u043a\u043e\u0439 \u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439<br \/>  \u2003\u2003\u2003\u20034. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435 \u0435\u0435 \u043a\u0430\u043a \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u0443\u044e.<br \/>  \u2003\u20032. \u0418\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 \u0441\u0442\u0435\u043a \u043d\u0435 \u043f\u0443\u0441\u0442<br \/>  \u2003\u2003\u2003\u20031. \u0412\u044b\u0434\u0435\u0440\u043d\u0438\u0442\u0435 \u043a\u043b\u0435\u0442\u043a\u0443 \u0438\u0437 \u0441\u0442\u0435\u043a\u0430<br \/>  \u2003\u2003\u2003\u20032. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0435\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439<br \/>  \u2003\u20033. \u0418\u043d\u0430\u0447\u0435<br \/>  \u2003\u2003\u2003\u20031. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443, \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0435\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435 \u043a\u0430\u043a \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u0443\u044e.<\/p>\n<p>  \u0412\u044b, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u0447\u0442\u043e \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f 3, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c.<br \/>  \u042d\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u0440\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u043d\u043e \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430.<\/p>\n<h5>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h5>\n<p>  \u041a\u0430\u043a \u0443\u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u044b\u0448\u0435, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0430\u0447\u0430\u043b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432\u0441\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u044b \u0441\u0442\u0435\u043d\u043a\u0430\u043c\u0438.<\/p>\n<h6>\u0418\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/h6>\n<p>  \u20030.&nbsp;&nbsp;&nbsp;\u2003<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ed2\/eb4\/b56\/ed2eb4b5618b46e085279c1c11e380f9.png\" alt=\"image\"\/>\u2003 &lt; \u2014 \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430.<\/p>\n<p>  \u20031.&nbsp;&nbsp;&nbsp;\u2003<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/663\/eee\/d16\/663eeed16b21499890a583150ba5d220.png\" alt=\"image\"\/>\u2003 &lt; \u2014 \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439.<\/p>\n<p>  \u20032.1.\u2003<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2a9\/8bc\/aff\/2a98bcaff2e64e31a77aa1479eb7cd72.png\" alt=\"image\"\/>\u2003 &lt; \u2014 \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c\u0443 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0435\u0434\u0443, \u043f\u043e\u043a\u0430 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0435\u0441\u0442\u044c.<\/p>\n<p>  \u20032.2.\u2003<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/67d\/9bd\/29f\/67d9bd29fbac4398801134179116405f.png\" alt=\"image\"\/>\u2003 &lt; \u2014 \u041d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043d\u0435\u0442. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043d\u0430\u0437\u0430\u0434 \u043f\u043e \u0441\u0442\u0435\u043a\u0443, \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0435\u0434\u0435\u0439.<\/p>\n<p>  \u20032.1.\u2003<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d99\/7c0\/54e\/d997c054ebe44d0e8d5a2d1176492a6c.png\" alt=\"image\"\/>\u2003 &lt; \u2014 \u041d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u0441\u0435\u0434\u0438 \u0435\u0441\u0442\u044c. \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c\u0443 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0435\u0434\u0443.<\/p>\n<p>  \u20032.&nbsp;&nbsp;&nbsp;\u2003<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f14\/df0\/76b\/f14df076b30b4409aa2b93bb575654d1.png\" alt=\"image\"\/>\u2003 &lt; \u2014 \u041d\u0435\u0442 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0435\u0442\u043e\u043a. \u041b\u0430\u0431\u0438\u0440\u0438\u043d\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d.<\/p>\n<h6>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434<\/h6>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c\u0443.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c.<br \/>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0438\u043f\u044b \u043a\u043b\u0435\u0442\u043e\u043a \u0437\u0430\u0434\u0430\u043d\u044b \u0432 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438.<\/p>\n<pre><code>int maze[height][width]; \/\/\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 - \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 for(i = 0; i &lt; height; i++){         for(j = 0; j &lt; width; j++){             if((i % 2 != 0  && j % 2 != 0) && \/\/\u0435\u0441\u043b\u0438 \u044f\u0447\u0435\u0439\u043a\u0430 \u043d\u0435\u0447\u0435\u0442\u043d\u0430\u044f \u043f\u043e x \u0438 y,                 (i &lt; height-1 && j &lt; width-1))   \/\/\u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0441\u0442\u0435\u043d \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430                    maze[i][j] = CELL;       \/\/\u0442\u043e \u044d\u0442\u043e \u041a\u041b\u0415\u0422\u041a\u0410             else maze[i][j] = WALL;           \/\/\u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u044d\u0442\u043e \u0421\u0422\u0415\u041d\u0410.         }     } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0434\u0435\u043b\u0430\u043d\u044b, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<pre><code>typedef struct cell{ \/\/\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u0445\u0440\u0430\u043d\u044f\u0449\u0430\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u043b\u0435\u0442\u043a\u0438 \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0435     unsigned int x;     unsigned int y; } cell;  typedef struct cellString{      cell* cells;     unsigned int size; } cellString; <\/code><\/pre>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u044f\u0442 \u0436\u0438\u0437\u043d\u044c \u043f\u0440\u0438 \u043e\u0431\u043c\u0435\u043d\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>  \u041e\u0442\u0440\u044b\u0432\u043e\u043a \u043a\u043e\u0434\u0430, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code>cell startCell = {1, 1} cell currentCell = startCell; cell neighbourCell; do{     cellString Neighbours = getNeighbours(width, height, maze, startPoint, 2);     if(Neighbours.size != 0){ \/\/\u0435\u0441\u043b\u0438 \u0443 \u043a\u043b\u0435\u0442\u043a\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u0441\u0435\u0434\u0438         randNum  = randomRange(0, Neighbours.size-1);         neighbourCell = cellStringNeighbours.cells[randNum]; \/\/\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0435\u0434\u0430         push(d.startPoint); \/\/\u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0442\u043e\u0447\u043a\u0443 \u0432 \u0441\u0442\u0435\u043a         maze = removeWall(currentCell, neighbourCell, maze); \/\/\u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0442\u0435\u043d\u0443 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u0441\u043e\u0441\u0435\u043d\u0434\u043d\u0435\u0439 \u0442\u043e\u0447\u043a\u0430\u043c\u0438         currentCell = neighbourCell; \/\/\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043e\u0441\u0435\u0434\u043d\u044e\u044e \u0442\u043e\u0447\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u043c \u0435\u0435 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u043e\u0439         maze = setMode(d.startPoint, d.maze, VISITED);         free(cellStringNeighbours.cells);     }     else if(stackSize &gt; 0){ \/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0442\u043e\u0447\u043a\u0443         startPoint = pop();     }     else{ \/\/\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u0438 \u0442\u043e\u0447\u0435\u043a \u0432 \u0441\u0442\u0435\u043a\u0435, \u043d\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u044b, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0438\u0437 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445         cellString cellStringUnvisited = getUnvisitedCells(width, height, maze);         randNum = randomRange(0, cellStringUnvisited.size-1);         currentCell = cellStringUnvisited.cells[randNum];         free(cellStringUnvisited.cells);     } while(unvisitedCount() &gt; 0); <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 \u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u0430 \u043e\u0442 \u0442\u0435\u043e\u0440\u0438\u0438, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u00ab\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u0440\u0435\u0431\u0435\u043d\u043e\u043a\u00bb.<br \/>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e, \u043a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u043e\u0442\u0440\u044b\u0432\u043a\u0435, \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f getNeighbours \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u043a\u043b\u0435\u0442\u043a\u0438<\/p>\n<pre><code>cellString getNeighbours(unsigned int width, unsigned int height, int** maze, cell c){     unsigned int i;     unsigned int x = c.x;     unsigned int y = c.y;     cell up = {x, y - distance};     cell rt = {x + distance, y};     cell dw = {x, y + distance};     cell lt = {x - distance, y};     cell d[4]  = {dw, rt, up, lt};     unsigned int size = 0;      cellString cells;     cells.cells = malloc(4 * sizeof(cell));      for(i = 0; i &lt; 4; i++){ \/\/\u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0434\u0435\u043d\u0438\u044f         if(d[i].x &gt; 0 && d[i].x &lt; width && d[i].y &gt; 0 && d[i].y &lt; height){ \/\/\u0435\u0441\u043b\u0438 \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430             unsigned int mazeCellCurrent = maze[d[i].y][d[i].x];             cell     cellCurrent     = d[i];             if(mazeCellCurrent != WALL && mazeCellCurrent != VISITED){ \/\/\u0438 \u043d\u0435 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0430\\\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0435\u043d\u043e\u0439                 cells.cells[size] = cellCurrent; \/\/\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432;                 size++;             }         }     }     cells.size = size;     return cells; <\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f removeWall \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0442\u0435\u043d\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043a\u043b\u0435\u0442\u043a\u0430\u043c\u0438:<\/p>\n<pre><code>mazeMatrix removeWall(cell first, cell second, int** maze){     short int xDiff = second.x - first.x;     short int yDiff = second.y - first.y;     short int addX, addY;     cell target;      addX = (xDiff != 0) ? (xDiff \/ abs(xDiff)) : 0;     addY = (yDiff != 0) ? (yDiff \/ abs(yDiff)) : 0;      target.x = first.x + addX; \/\/\u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0441\u0442\u0435\u043d\u043a\u0438     target.y = first.y + addY;      maze[target.y][target.x] = VISITED;     return maze; } <\/code><\/pre>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u043e\u0447\u0435\u043a. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435, \u043b\u0438\u0431\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435, \u043b\u0438\u0431\u043e 0.<\/p>\n<p>  \u041d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043a\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b xy, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u0445 \u0441 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0441\u0442\u0435\u043d\u043a\u0438.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u0435\u043a\u0442\u043e\u0440 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u0441\u0442\u0435\u043d\u043a\u0438 \u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u0440\u0430\u0432\u0435\u043d \u043b\u0438\u0431\u043e (|1|, 0) \u043b\u0438\u0431\u043e (0, |1|), \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u044d\u0442\u0438\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0430\u0434\u0434\u0438\u0442\u0438\u0432 \u0434\u043b\u044f x \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043f\u0440\u0438 xDiff != 0 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d xDiff \/ |xDiff|, \u043f\u0440\u0438 xDiff = 0, \u043d\u0443\u043b\u044e. \u0414\u043b\u044f y \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<br \/>  \u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0430\u0434\u0434\u0438\u0442\u0438\u0432\u044b \u0434\u043b\u044f x \u0438 y, \u043c\u044b \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0441\u0442\u0435\u043d\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043b\u0435\u0442\u043a\u0430\u043c\u0438 \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u043a\u043b\u0435\u0442\u043a\u0443 \u043f\u043e \u044d\u0442\u0438\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u043e\u0439.  <\/div>\n<\/div>\n<p>  \u0418\u0442\u0430\u043a, \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0435 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b. \u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e, \u0442\u0440\u0430\u0444\u0438\u043a!<\/b><\/p>\n<div class=\"spoiler_text\">\u2003 100&#215;100 <br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3f6\/6f3\/f93\/3f66f3f934694ea59abaaca1dfc173e1.png\" alt=\"image\"\/><br \/>  \u2003 500&#215;500 <br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1a4\/3a0\/26d\/1a43a026d15c43ccac0f54266fd8b46c.png\" alt=\"image\"\/>  <\/div>\n<\/div>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c: \u043d\u0430\u0439\u0442\u0438 \u0432 \u0442\u0430\u043a\u043e\u043c \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0435 \u0432\u044b\u0445\u043e\u0434.<\/p>\n<p>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0443\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439, \u044f \u043e\u0441\u0432\u0435\u0449\u0443 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445, \u043d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c, \u0438 \u00ab\u043f\u0440\u043e\u0439\u0434\u0435\u043c\u00bb \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442 \u0442\u0435\u043c \u0436\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c.<\/p>\n<p>  \u0418 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0430\u0434\u043e \u0443\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0435\u043d\u043a\u0438.<\/p>\n<p>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0443\u0442\u0438 \u0431\u044d\u043a\u0442\u0440\u0435\u043a\u0438\u043d\u0433\u043e\u043c:<br \/>  1. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435 \u0435\u0435 \u043a\u0430\u043a \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u0443\u044e.<br \/>  2. \u041f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0432\u044b\u0445\u043e\u0434<br \/>  \u2003\u20031. \u0415\u0441\u043b\u0438 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043a\u043b\u0435\u0442\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u00ab\u0441\u043e\u0441\u0435\u0434\u0435\u0439\u00bb<br \/>  \u2003\u2003\u2003\u20031. \u041f\u0440\u043e\u0442\u043e\u043b\u043a\u043d\u0438\u0442\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0432 \u0441\u0442\u0435\u043a<br \/>  \u2003\u2003\u2003\u20032. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445<br \/>  \u2003\u2003\u2003\u20033. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0438 \u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435 \u0435\u0435 \u043a\u0430\u043a \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u0443\u044e.<br \/>  \u2003\u20032. \u0418\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 \u0441\u0442\u0435\u043a \u043d\u0435 \u043f\u0443\u0441\u0442<br \/>  \u2003\u2003\u2003\u20031. \u0412\u044b\u0434\u0435\u0440\u043d\u0438\u0442\u0435 \u043a\u043b\u0435\u0442\u043a\u0443 \u0438\u0437 \u0441\u0442\u0435\u043a\u0430<br \/>  \u2003\u2003\u2003\u20032. \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0435\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439<br \/>  \u2003\u20033. \u0418\u043d\u0430\u0447\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u043d\u0435\u0442<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u0432\u044b\u0448\u043b\u043e:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0448\u0435\u043d\u043d\u044b\u0435 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b. \u0422\u0440\u0430\u0444\u0444\u0438\u043a!<\/b><\/p>\n<div class=\"spoiler_text\">\u041a\u0440\u0430\u0441\u043d\u044b\u043c \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d \u043f\u0443\u0442\u044c, \u0433\u043e\u043b\u0443\u0431\u044b\u043c \u2014 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0435\u0442\u043a\u0438.<br \/>  \u2003 100&#215;100<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/65b\/bc4\/8f0\/65bbc48f0f494e80a474cadb69824bb3.png\" alt=\"image\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b33\/fb3\/cfe\/b33fb3cfeada4f98a9c73dbd6d736e65.png\" alt=\"image\"\/><br \/>  \u2003 500&#215;500<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c64\/c68\/7a3\/c64c687a3f5b44e8a9280129392a0364.png\" alt=\"image\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5e0\/a33\/55a\/5e0a3355a7ea4415bb61470f01148d0f.png\" alt=\"image\"\/><br \/>  \u2003 8000\u04458000<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/149\/38f\/843\/14938f84303744728f7dd9e635c009e7.png\" alt=\"image\"\/> <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7d7\/2d4\/3cf\/7d72d43cf26740d39dc6dc424e6c575f.png\" alt=\"image\"\/><\/p>\n<p>  8000\u04458000 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438 (16000px, 30\u043c\u0431):<br \/>  <a href=\"https:\/\/yadi.sk\/i\/YS0ImN-PhoLcZ\">yadi.sk\/i\/YS0ImN-PhoLcZ<\/a><br \/>  <a href=\"https:\/\/yadi.sk\/i\/YZjzwPu5hoLcd\">yadi.sk\/i\/YZjzwPu5hoLcd<\/a>  <\/div>\n<\/div>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f, \u043f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 GitHub: <a href=\"https:\/\/github.com\/mersinvald\/maze-generator_offscreen\">Maze Generator and Solver (offscreen rendering)<\/a><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/b><\/p>\n<div class=\"spoiler_text\">OSMesa <b>\u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f<\/b> \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 \u043d\u0430 unix-based, \u0430 \u043d\u0430 Windows <b>\u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c<\/b>, \u0442\u0430\u043a \u0447\u0442\u043e \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u043c, \u043a\u043e\u043c\u0443 \u043d\u0435 \u043f\u043e\u0432\u0435\u0437\u043b\u043e \u0441 \u041e\u0421\/\u0436\u0435\u043b\u0435\u0437\u043e\u043c, \u043c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u043c\u0435\u0436\u043d\u044b\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c: <a href=\"https:\/\/github.com\/mersinvald\/maze-generator\">Maze Generator and Solver<\/a><br \/>  \u0412 \u043e\u0431\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0438\u0441\u0443\u0435\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c png-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<br \/>  \u0421\u0431\u043e\u0440\u043a\u0430 cd build &#038;&#038; ..\/configure &#038;&#038; make, \u0435\u0441\u043b\u0438 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e, \u0432 \u043f\u0430\u043f\u043a\u0435 src \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b-\u043f\u0440\u043e\u0435\u043a\u0442 QtCreator&#8217;a.  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h5>\n<p>  1. <a href=\"http:\/\/www.astrolog.org\/labyrnth\/algrithm.htm\">Walter D. Pullen: Think Labyrinth.<\/a><br \/>  2. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Maze_generation_algorithm\">Wikipedia: Maze generation algorithm.<\/a>             <\/p>\n<div class=\"clear\"><\/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=\"http:\/\/habrahabr.ru\/post\/262345\/\"> http:\/\/habrahabr.ru\/post\/262345\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/969\/201\/28e\/96920128e9364d66b7d28258b20e329f.png\" alt=\"image\"\/><\/p>\n<p>  \u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u043e\u0432.<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u00ab\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u00bb \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0443\u0442\u0438.<\/p>\n<p>  \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0431\u044d\u043a\u0442\u0440\u0435\u043a\u0438\u043d\u0433\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b \u0431\u0435\u0437 \u0446\u0438\u043a\u043b\u043e\u0432, \u0438\u043c\u0435\u044e\u0449\u0438\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0442\u043e\u0447\u043a\u0430\u043c\u0438. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043d \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 <a href=\"http:\/\/habrahabr.ru\/post\/176671\/\">\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c \u042d\u0439\u043b\u0435\u0440\u0430<\/a> \u0438\u043b\u0438 \u041a\u0440\u0443\u0441\u043a\u0430\u043b\u0430, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0435\u0442\u0432\u0438\u0441\u0442\u044b\u0435 \u043b\u0430\u0431\u0438\u0440\u0438\u043d\u0442\u044b \u0441 \u043e\u0447\u0435\u043d\u044c \u0434\u043b\u0438\u043d\u043d\u044b\u043c\u0438 \u0442\u0443\u043f\u0438\u043a\u043e\u0432\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>  \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u2014 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/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-261198","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/261198","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=261198"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/261198\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}