{"id":283037,"date":"2016-12-26T12:45:04","date_gmt":"2016-12-26T09:45:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283037"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283037","title":{"rendered":"\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b (\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439) \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u043e\u043d\u043b\u0430\u0439\u043d \u0438\u0433\u0440\u0435"},"content":{"rendered":"<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/422\/240\/bb7\/422240bb7f2145d0bef1047770cb4bcc.png\" \/><\/div>\n<p>  <\/p>\n<h4>\u0427\u0430\u0441\u0442\u044c \u0432\u0441\u0442\u0443\u043f\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e, \u043d\u0435 \u043d\u0435\u0441\u0451\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0446\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/h4>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u044e\u0434\u0435\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0433\u0440\u0430\u043b\u0438 \u0432 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043d\u044b\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0433\u0440\u044b, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043c\u043e\u043d\u043e\u043f\u043e\u043b\u0438\u044f, \u0440\u044b\u043d\u043e\u043a, \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435\u0440. \u041c\u044b \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u0438\u0433\u0440\u0430\u043b\u0438 \u0432 \u043d\u0438\u0445 \u0434\u043d\u0438 \u043d\u0430 \u043f\u0440\u043e\u043b\u0451\u0442. \u0421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0437\u0443\u0431\u0440\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u044b\u0433\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0442\u0438\u0439, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0435\u0433\u043e-\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e. \u0418 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u0441\u0430\u043c\u0438. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435, \u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u0445 \u0438\u0433\u0440, \u0447\u0442\u043e \u043c\u044b \u0432\u044b\u0434\u0435\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435, \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u0438 \u0438 \u0441\u0432\u043e\u0438 \u0438\u0434\u0435\u0438. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u043e \u0434\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0438\u0433\u0440\u0430 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0430\u0441\u044c \u043d\u0430 9 \u043b\u0438\u0441\u0442\u0430\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u04104, \u0430 \u0435\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u044b\u043b\u0438 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0442\u0435\u0440\u043f\u0438\u043c\u044b\u043c\u0438 \u043a \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c, \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u043d\u0430\u0441 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u043e\u0433 \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u0451 \u0438\u0433\u0440\u0430\u0442\u044c (\u0445\u043e\u0442\u044f \u0432 \u043c\u043e\u043d\u043e\u043f\u043e\u043b\u0438\u044e \u0441\u043e \u043c\u043d\u043e\u0439 \u0438\u0433\u0440\u0430\u043b\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0438). \u0422\u0430\u043c \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e, \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e, \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043a\u0430, \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044b \u0438\u043b\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u043f\u043e\u043c\u043e\u0449\u044c). \u0414\u0435\u0441\u044f\u0442\u043a\u0438 \u0432\u0438\u0434\u043e\u0432 \u043e\u0440\u0443\u0436\u0438\u044f, \u043c\u0430\u0448\u0438\u043d. \u0427\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0435\u043b\u044f\u0442\u044c \u043d\u0443\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u043f\u0430\u0442\u0440\u043e\u043d\u044b. \u0421 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0438\u0433\u0440\u0430\u0442\u044c, \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0443\u0442\u044c \u0432 \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0443, \u0438 \u0442.\u043f.<\/p>\n<p>  \u0418\u0433\u0440\u0430 \u0434\u043b\u0438\u043b\u0430\u0441\u044c \u043c\u043d\u043e\u0433\u0438\u0435 \u0447\u0430\u0441\u044b, \u0438 \u0435\u0441\u043b\u0438 \u043f\u043e\u0440\u0430 \u0431\u044b\u043b\u043e \u043f\u043e \u0434\u043e\u043c\u0430\u043c, \u043c\u044b \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0438 \u0441 \u043a\u043e\u043c\u043d\u0430\u0442\u044b, \u0430 \u044f \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u043b \u043d\u0438\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0442\u044c\u0441\u044f \u043a \u0438\u0433\u0440\u0435, \u0434\u0430\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043b \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u0438 \u0444\u0438\u0448\u043a\u0438.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u0437\u0430\u0434\u0430\u043b \u0441\u0435\u0431\u0435 \u0432\u043e\u043f\u0440\u043e\u0441, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u0445\u043e\u0442\u044c \u043c\u0430\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e \u043d\u0435 \u043d\u0430 \u0431\u0443\u043c\u0430\u0433\u0435, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>  \u0418 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e <i>\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0445<\/i>, \u0442\u043e \u0435\u0441\u0442\u044c \u043e \u043d\u0435\u043a\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u0445 \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u0433\u0440\u044b (\u043f\u0440\u0430\u0432\u0438\u043b\u0430). \u041e\u0442 \u044d\u0442\u043e\u0433\u043e \u0438 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h4>\u0427\u0430\u0441\u0442\u044c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/h4>\n<p>  \u0427\u0442\u043e \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0446\u0438\u043a\u043b \u0438\u0433\u0440\u044b? \u0418\u0433\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u0430 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0445\u043e\u0434 \u0446\u0438\u043a\u043b\u0438\u0447\u043d\u043e. \u0418\u0433\u0440\u043e\u043a \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0417\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0445\u043e\u0434, \u0438 \u0442.\u0434.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0412 \u0447\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438<\/h3>\n<p>  \u0421 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0433\u0440\u043e\u0439 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d \u043e\u0431\u044a\u0435\u043a\u0442 \u0438\u0433\u0440\u044b (<i>game-object<\/i>). \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 \u0435\u0433\u043e, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u043f\u043e\u043a\u0443\u043f\u043a\u0430 \u0443\u0447\u0430\u0441\u0442\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0447\u0430\u0441\u0442\u043a\u0435 \u0437\u0430\u0432\u043e\u0434\u044b \u0432\u043e\u0437\u0432\u043e\u0434\u0438\u0442\u044c (\u043f\u043e\u043a\u0430 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b).<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ae1\/4aa\/3b1\/ae14aa3b165c40569bea8e505cae5114.png\" \/><\/div>\n<p>  \u041a\u0430\u043a\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c? \u0412 \u043e\u0431\u0449\u0435\u043c \u0442\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e: \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u0438\u043b\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u043e \u043c\u0435\u0440\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.<\/p>\n<h3>\u041a\u043e\u043c\u0443 \u0434\u0430\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f?<\/h3>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0431\u044b\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0438\u0433\u0440\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043f\u0440\u0430\u0432\u043e \u0445\u043e\u0434\u0430. \u0427\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u0433\u0440\u043e\u043a\u043e\u0432 \u043d\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u0446\u0435\u043d\u043d\u044b\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u043a.<\/p>\n<p>  <i>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p>  \u0418\u0433\u0440\u043e\u043a \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0430 \u043a\u043b\u0435\u0442\u043a\u0443 \u0441 \u0437\u0435\u043c\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043a\u043e\u043c, \u043d\u043e \u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442 \u0435\u0433\u043e. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043d\u0430 \u0430\u0443\u043a\u0446\u0438\u043e\u043d, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442? \u0410 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u0434\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0438\u0433\u0440\u043e\u043a\u0443 \u0434\u0432\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u2014 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0441\u0442\u0430\u0432\u043a\u0443 \u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0430\u0443\u043a\u0446\u0438\u043e\u043d\u0430. \u0412\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e.<\/i><\/p>\n<p>  \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0445 (\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0438).<\/p>\n<h3>\u041a\u043e\u0433\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439?<\/h3>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f39\/bee\/d76\/f39beed7638a4980b218dd69410493cb.png\" \/><\/div>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u0434 \u0445\u043e\u0434\u043e\u043c \u0438\u0433\u0440\u043e\u043a\u0430. \u041d\u043e \u0442\u0443\u0442 \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0431\u044f. \u0415\u0441\u043b\u0438 \u0443 \u0438\u0433\u0440\u043e\u043a\u0430 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u0434\u0435\u043d\u0435\u0433 \u043a\u0443\u043f\u0438\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u0438 \u043e\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b \u043a\u0430\u0440\u0442\u0443 (\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438. \u0414\u0430, \u0434\u0430, \u0442\u0430\u043a \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e), \u0438\u0433\u0440\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0435\u043c\u0443 \u043a\u0443\u043f\u0438\u0442\u044c.<\/p>\n<p>  \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0434\u043b\u044f \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e, \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043c\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u0438 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.<\/p>\n<h3>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439<\/h3>\n<p>  \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u043f\u043e\u043b\u043e\u0442\u043d\u043e if-\u043e\u0432. \u0422.\u0435. \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043e\u043a. \u041f\u0440\u0438\u043c\u0435\u0440. \u041d\u0430 \u043a\u043b\u0435\u0442\u043a\u0435 \u043c\u0430\u0444\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li> \u0415\u0441\u043b\u0438 \u043c\u0430\u0444\u0438\u044f \u043d\u0435 \u043f\u043e\u0434\u043c\u044f\u0442\u0430 \u043d\u0438 \u043f\u043e\u0434 \u043a\u043e\u0433\u043e, \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043c\u044f\u0442\u044c<\/li>\n<li> \u0415\u0441\u043b\u0438 \u043c\u0430\u0444\u0438\u044f \u043d\u0435 \u043f\u043e\u0434\u043c\u044f\u0442\u0430 \u043d\u0438 \u043f\u043e\u0434 \u043a\u043e\u0433\u043e \u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0435\u0451 \u043f\u043e\u0434\u043c\u044f\u0442\u044c, \u0432\u044b \u043e\u0442\u0434\u0430\u0451\u0442\u0435 \u0437\u0430\u0432\u043e\u0434 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u0443\u0447\u0430\u0441\u0442\u043a\u043e\u0432<\/li>\n<li> \u0415\u0441\u043b\u0438 \u043c\u0430\u0444\u0438\u044f \u043f\u043e\u0434\u043c\u044f\u0442\u0430 \u043f\u043e\u0434 \u0432\u0430\u0441, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442<\/li>\n<li> \u0415\u0441\u043b\u0438 \u043c\u0430\u0444\u0438\u044f \u043f\u043e\u0434\u043c\u044f\u0442\u0430 \u043f\u043e\u0434 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0438\u0433\u0440\u043e\u043a\u0430, \u0432\u044b \u043e\u0442\u0434\u0430\u0451\u0442\u0435 <i>n<\/i> \u0434\u0435\u043d\u0435\u0433<\/li>\n<\/ul>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441 if-\u043c\u0438:<\/p>\n<pre><code class=\"python\">        if sector.is_mafia():             # \u0415\u0441\u043b\u0438 \u043c\u0430\u0444\u0438\u044f \u043f\u043e\u0434\u043c\u044f\u0442\u0430 \u043f\u043e\u0434 \u0438\u0433\u0440\u043e\u043a\u0430             if sector.mafia.is_has_owner():                 # \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0447\u0442\u043e \u043f\u043e\u0434\u043c\u044f\u0442\u0430 \u043f\u043e\u0434 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0438\u0433\u0440\u043e\u043a\u0430                 if sector.mafia.owner != player:                     # \u0435\u0441\u043b\u0438 \u0443 \u0438\u0433\u0440\u043e\u043a\u0430 \u0435\u0441\u0442\u044c \u0437\u0430\u0432\u043e\u0434 (\u043b\u044e\u0431\u043e\u0439)                     if player.is_have_factory():                         self._actions.append(                             Action(                                 text='\u0417\u0430\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043c\u0430\u0444\u0438\u0438',                                 # other args                             )                         )             else:                 self._actions.append(                     Action(                         text='\u041e\u0442\u0434\u0430\u0442\u044c \u0437\u0430\u0432\u043e\u0434 \u043c\u0430\u0444\u0438\u0438',                         # other args                     )                 )                 self._actions.append(                     Action(                         text='\u041f\u043e\u0434\u043c\u044f\u0442\u044c \u043c\u0430\u0444\u0438\u044e',                         # other args                     )                 ) <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b. \u0412 \u0431\u043b\u043e\u043a\u0435 <i>else<\/i> \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (\u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0432\u0441\u044e \u0432\u044b\u0448\u0435\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443). \u0422\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0441\u043b\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c Action() \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u0430 if-\u043e\u0432. \u041e\u0447\u0435\u043d\u044c \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438 \u0438\u0442\u043e\u0433\u0435.<\/p>\n<p>  \u041d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u0434\u0443\u0445\u0435:<\/p>\n<pre><code class=\"python\">@some_constraint # \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 def some_action():     pass # \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445  <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043c\u0430\u0444\u0438\u0435\u0439 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">@when((is_mafia ,), (is_mafia_has_alien_owner, )) def paid_mafia(game):     sum = game.calc_paid_mafia(game.active_player)       game.active_player.cash -= sum                # \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0430\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f     game.active_sector.land.owner.cash += sum             <\/code><\/pre>\n<p>  \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u043e \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043e\u043d\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043e\u0434\u0438\u043d \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u2014 <b>\u043e\u0431\u044a\u0435\u043a\u0442 \u0438\u0433\u0440\u044b<\/b> \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <b>bool<\/b>. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c, \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c (is_mafia \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u2014 sector_detect).<\/p>\n<pre><code class=\"python\">def sector_detect(game, sector_type: str) -&gt; bool:     return game.active_sector.land.type == sector_type  def is_mafia(game) -&gt; bool:     return sector_detect(game, MAFIA_SECTOR)  def is_mafia_has_alien_owner(game) -&gt; bool:     return game.active_sector.mafia.is_has_owner() and not game.active_sector.mafia.is_owner(game.active_player) <\/code><\/pre>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0442\u0430\u043a \u0436\u0435 \u0431\u044b\u043b\u0430 \u0432 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0435.<\/p>\n<pre><code class=\"python\">@am.action('\u0417\u0430\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043c\u0430\u0444\u0438\u0438', ) # and other option) @am.when((is_mafia ,), (is_mafia_has_alien_owner, )) def paid_mafia(game):     pass <\/code><\/pre>\n<p>  \u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 <i>action<\/i> \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043f\u043b\u044e\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430)<\/p>\n<p>  am \u2014 \u043e\u0431\u044a\u0435\u043a\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438 (ActionManager)<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e <i>when<\/i> \u0438 <i>action<\/i>. \u042f \u0443\u0431\u0440\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a, \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0435 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438. \u0412 \u0446\u0435\u043b\u043e\u043c \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">class ActionManager:      # ...     def when(self, *conditions):         def decorator(function):             @wraps(function)             def wrapper(*args, **kwargs):                 for condition, *arguments in conditions:                     if not condition(self.game, *arguments):                         break                 else:                     return function, args, kwargs             return wrapper         return decorator <\/code><\/pre>\n<p>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 <i>when<\/i> \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u043e\u0441\u044c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438\u0433\u0440\u043e\u043a\u0443 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e.<\/p>\n<p>  <i>function<\/i> \u2014 \u042d\u0442\u043e \u043e\u0434\u043d\u043e \u0438\u0437 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (<i>paid_mafia<\/i>). \u041e\u043d\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0431\u043e\u0440\u0430 \u0438\u0433\u0440\u043e\u043a\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438.<\/p>\n<p>  \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/p>\n<pre><code class=\"python\">class ActionManager:      # ...     def action(self, name):         def decorator(function):             @wraps(function)             def wrapper(*args, **kwargs):                 pass             self.actions.append(Action(name, function)) # Action = namedtuple('Action', ['verbose_name', 'exec'])             return wrapper         return decorator <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e <i>action<\/i> \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043d\u043e\u0441\u0438\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0431\u0435\u0437 <i>action<\/i> \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c (\u0434\u0430 \u0438 \u0442\u0430\u043a\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u043a\u043e\u0435-\u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b), \u044f\u0432\u043d\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435:<\/p>\n<pre><code class=\"python\">game.register_action(some_action) <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0438\u0445 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c:<\/p>\n<pre><code class=\"python\">class ActionManager:      # ...     def prepare(self):         for action in self.actions:             result = action.exec(self.game) # \u0412\u044b\u0437\u043e\u0432\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u043e\u043d\u043e \u043e\u0431\u0432\u0451\u0440\u043d\u0443\u0442\u043e \u0432 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 when)             if result is None: # \u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438, when \u0432\u0435\u0440\u043d\u0443\u043b\u043e None                 continue             # \u041f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u044b\u0431\u0435\u0440\u0435\u0442 \u0435\u0433\u043e             self.prepared_actions.append(action._replace(exec=result)) <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u0438\u043d\u0438-\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0431\u0440\u0430\u043b \u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432\u044b\u0432\u043e\u0434 \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b, \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043c\u0438\u043d\u0438-\u0446\u0438\u043a\u043b\u0430, \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from collections import namedtuple from functools import wraps  BALANCE_MIN_LIMIT = 1000 MATERIAL_AID = 10000 FACTORY_COST = 900  Action = namedtuple('Action', ['verbose_name', 'exec']) DEBUG = True  class ActionManager:      def __init__(self):         self.actions = []         self.game = {             'active_player': {                 'cash': 300,                 'factory': False             },         }          self.prepare_actions = []      def prepare(self):         for action in self.actions:             result = action.exec(self.game)              if result is None:                 continue              self.prepare_actions.append(                 action._replace(exec=result)             )      def execute(self):                  print(&quot;PREPARE ACTION&quot;, self.prepare_actions)          for action in self.prepare_actions:             act, args, kwargs = action.exec             act(*args, **kwargs)             self.prepare()                   def action(self, name):         def decorator(function):              @wraps(function)             def wrapper(*args, **kwargs):                 pass              if DEBUG:                 print('ADD ACTION --', function.__name__)              self.actions.append(Action(name, function))              return wrapper         return decorator      def when(self, *conditions):         def decorator(function):             @wraps(function)             def wrapper(*args, **kwargs):                 for condition, *arguments in conditions:                     result = condition(self.game, *arguments)                     if DEBUG:                         print(&quot;CONDITION: {} ARGS: {} RESULT: {}&quot;.format(condition.__name__, arguments, result))                     if not result:                         break                 else:                     return function, args, kwargs             return wrapper         return decorator  am = ActionManager()  def money_detect(game, limit: float) -&gt; bool:     return game.get('active_player').get('cash') &lt; limit  def money_more(game, limit: float) -&gt; bool:     return game.get('active_player').get('cash') &gt; limit  def is_player_havnt_factory(game) -&gt; bool:     return not game.get('active_player').get('factory')  @am.action('Add money') @am.when((money_detect, BALANCE_MIN_LIMIT)) def add_money_action(game):      game['active_player']['cash'] += MATERIAL_AID      if DEBUG:         print(&quot;Action&quot;, add_money_action.__name__, &quot;SUCCESS&quot;)  @am.action('Build factory') @am.when((money_more, FACTORY_COST), (is_player_havnt_factory, )) def build_factory(game):      game['active_player']['factory'] = True      if DEBUG:         print(&quot;Action&quot;, build_factory.__name__, &quot;SUCCESS&quot;)  if __name__ == '__main__':      print(&quot;BEFORE ACTION&quot;, am.game['active_player'])      am.prepare()      print(&quot;INTO THE GAME&quot;)      am.execute()      print(&quot;AFTER ACTION&quot;, am.game['active_player']) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u044b\u0432\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><code>ADD ACTION -- add_money_action<br \/>  ADD ACTION -- build_factory<br \/>  BEFORE ACTION {'factory': False, 'cash': 300}<br \/>  CONDITION: money_detect ARGS: [1000] RESULT: True # \u0423 \u0438\u0433\u0440\u043e\u043a\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e \u043c\u0430\u043b\u043e \u0434\u0435\u043d\u0435\u0433<br \/>  CONDITION: money_more ARGS: [900] RESULT: False # \u0417\u0430\u0432\u043e\u0434 \u043e\u043d \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442<br \/>  INTO THE GAME<\/p>\n<p>  PREPARE ACTION [Action(verbose_name='Add money', exec=(&lt;function add_money_action at 0x7f94728a1730&gt;, ({'active_player': {'factory': False, 'cash': 300}},), {}))]<\/p>\n<p>  Action add_money_action SUCCESS<br \/>  CONDITION: money_detect ARGS: [1000] RESULT: False<br \/>  CONDITION: money_more ARGS: [900] RESULT: True<br \/>  CONDITION: is_player_havnt_factory ARGS: [] RESULT: True # \u0421\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0444\u0445\u0449\u0430\u0432\u043e\u0434\u0430 \u0435\u0449\u0435 \u043d\u0435\u0442<br \/>  Action build_factory SUCCESS<br \/>  CONDITION: money_detect ARGS: [1000] RESULT: False<br \/>  CONDITION: money_more ARGS: [900] RESULT: True<br \/>  CONDITION: is_player_havnt_factory ARGS: [] RESULT: False<br \/>  AFTER ACTION {'factory': True, 'cash': 10300}<br \/>  <\/code>  <\/div>\n<\/div>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0439, \u043d\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043b\u0438\u0448\u044c \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0430 \u0443\u0447\u0430\u0441\u0442\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0430\u0441\u044c, <b>\u0442\u043e\u043b\u044c\u043a\u043e<\/b> \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u0441\u0447\u0435\u0442\u0443 \u0441\u0442\u0430\u043b\u043e \u0445\u0432\u0430\u0442\u0430\u0442\u044c \u0434\u0435\u043d\u0435\u0433. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u0435, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438\u0433\u0440\u043e\u043a\u0430\u043c\u0438, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0441\u0430\u043c\u0438 \u043f\u043e \u0441\u0435\u0431\u0435.<\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/h4>\n<p>  \u0414\u0430, \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043a\u0443\u0447\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0438\u043d\u0438-\u044f\u0437\u044b\u043a. \u041d\u043e \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0438 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u0433\u0440\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0414\u0430 \u0438 \u0446\u0435\u043b\u044c \u0431\u044b\u043b\u0430 \u043d\u0435 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python, \u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0431\u043e\u043b\u0435\u0435 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0439 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u043e\u043b\u0435\u0435 \u043b\u0451\u0433\u043a\u043e\u0439 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438.<\/p>\n<p>  <i><b>P.S.<\/b> \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 Python(Django) \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u0435)<\/i><br \/> \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:\/\/habrahabr.ru\/post\/318442\/\"> https:\/\/habrahabr.ru\/post\/318442\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/422\/240\/bb7\/422240bb7f2145d0bef1047770cb4bcc.png\" \/><\/div>\n<p>  <\/p>\n<h4>\u0427\u0430\u0441\u0442\u044c \u0432\u0441\u0442\u0443\u043f\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e, \u043d\u0435 \u043d\u0435\u0441\u0451\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0446\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/h4>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u044e\u0434\u0435\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0433\u0440\u0430\u043b\u0438 \u0432 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043d\u044b\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0433\u0440\u044b, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043c\u043e\u043d\u043e\u043f\u043e\u043b\u0438\u044f, \u0440\u044b\u043d\u043e\u043a, \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435\u0440. \u041c\u044b \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u0438\u0433\u0440\u0430\u043b\u0438 \u0432 \u043d\u0438\u0445 \u0434\u043d\u0438 \u043d\u0430 \u043f\u0440\u043e\u043b\u0451\u0442. \u0421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0437\u0443\u0431\u0440\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u044b\u0433\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0442\u0438\u0439, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0435\u0433\u043e-\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e. \u0418 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u044b \u0441\u0430\u043c\u0438. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435, \u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u0445 \u0438\u0433\u0440, \u0447\u0442\u043e \u043c\u044b \u0432\u044b\u0434\u0435\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435, \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u0438 \u0438 \u0441\u0432\u043e\u0438 \u0438\u0434\u0435\u0438. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u043e \u0434\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0438\u0433\u0440\u0430 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0430\u0441\u044c \u043d\u0430 9 \u043b\u0438\u0441\u0442\u0430\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u04104, \u0430 \u0435\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u044b\u043b\u0438 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0442\u0435\u0440\u043f\u0438\u043c\u044b\u043c\u0438 \u043a \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c, \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u043d\u0430\u0441 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u043e\u0433 \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u0451 \u0438\u0433\u0440\u0430\u0442\u044c (\u0445\u043e\u0442\u044f \u0432 \u043c\u043e\u043d\u043e\u043f\u043e\u043b\u0438\u044e \u0441\u043e \u043c\u043d\u043e\u0439 \u0438\u0433\u0440\u0430\u043b\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0438). \u0422\u0430\u043c \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e, \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e, \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043a\u0430, \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044b \u0438\u043b\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u043f\u043e\u043c\u043e\u0449\u044c). \u0414\u0435\u0441\u044f\u0442\u043a\u0438 \u0432\u0438\u0434\u043e\u0432 \u043e\u0440\u0443\u0436\u0438\u044f, \u043c\u0430\u0448\u0438\u043d. \u0427\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0435\u043b\u044f\u0442\u044c \u043d\u0443\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u043f\u0430\u0442\u0440\u043e\u043d\u044b. \u0421 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0438\u0433\u0440\u0430\u0442\u044c, \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0443\u0442\u044c \u0432 \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0443, \u0438 \u0442.\u043f.<\/p>\n<p>  \u0418\u0433\u0440\u0430 \u0434\u043b\u0438\u043b\u0430\u0441\u044c \u043c\u043d\u043e\u0433\u0438\u0435 \u0447\u0430\u0441\u044b, \u0438 \u0435\u0441\u043b\u0438 \u043f\u043e\u0440\u0430 \u0431\u044b\u043b\u043e \u043f\u043e \u0434\u043e\u043c\u0430\u043c, \u043c\u044b \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0438 \u0441 \u043a\u043e\u043c\u043d\u0430\u0442\u044b, \u0430 \u044f \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u043b \u043d\u0438\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0442\u044c\u0441\u044f \u043a \u0438\u0433\u0440\u0435, \u0434\u0430\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043b \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u0438 \u0444\u0438\u0448\u043a\u0438.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u0437\u0430\u0434\u0430\u043b \u0441\u0435\u0431\u0435 \u0432\u043e\u043f\u0440\u043e\u0441, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u0445\u043e\u0442\u044c \u043c\u0430\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e \u043d\u0435 \u043d\u0430 \u0431\u0443\u043c\u0430\u0433\u0435, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>  \u0418 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e <i>\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0445<\/i>, \u0442\u043e \u0435\u0441\u0442\u044c \u043e \u043d\u0435\u043a\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u0445 \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u0433\u0440\u044b (\u043f\u0440\u0430\u0432\u0438\u043b\u0430). \u041e\u0442 \u044d\u0442\u043e\u0433\u043e \u0438 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h4>\u0427\u0430\u0441\u0442\u044c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/h4>\n<p>  \u0427\u0442\u043e \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0446\u0438\u043a\u043b \u0438\u0433\u0440\u044b? \u0418\u0433\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u0430 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0445\u043e\u0434 \u0446\u0438\u043a\u043b\u0438\u0447\u043d\u043e. \u0418\u0433\u0440\u043e\u043a \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0417\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0445\u043e\u0434, \u0438 \u0442.\u0434.  <\/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-283037","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283037","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=283037"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283037\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}