{"id":473765,"date":"2025-09-03T03:00:07","date_gmt":"2025-09-03T03:00:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=473765"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=473765","title":{"rendered":"<span>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u043e\u043c\u00bb: \u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0438 \u0441\u043e\u043a\u0440\u044b\u0442\u0438\u044e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u0433\u0440\u044b \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0432 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0434\u043b\u044f \u0434\u0443\u0448\u0438. \u0427\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u043d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435. \u0427\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u0435 &#171;\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442\u044b&#187; \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044f\u0439\u0446\u0430\u043c\u0438\u00bb \u2014 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0438 \u0437\u0430\u0447\u0435\u043c \u043c\u044b \u0441\u043f\u0440\u044f\u0442\u0430\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/articles\/938868\/\" rel=\"noopener noreferrer nofollow\"><strong>\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043b\u044f \u0441\u0442\u0435\u0433\u0430\u043d\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u00abChameleonLab\u00bb<\/strong><\/a> \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb. \u042d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u043a\u0435\u00bb, \u0430 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u0434\u0430 \u043d\u0430 Python \u0438 PyQt6, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043a\u0430\u0436\u0443\u0449\u0443\u044e\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u0430\u00bb \u2014 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9eb\/41a\/660\/9eb41a6604f39735e5536f3b5cf58d39.png\" width=\"851\" height=\"639\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/9eb\/41a\/660\/9eb41a6604f39735e5536f3b5cf58d39.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9eb\/41a\/660\/9eb41a6604f39735e5536f3b5cf58d39.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u044b\u0435 \u044f\u0439\u0446\u0430\u00bb?<\/h2>\n<p>\u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb \u2014 \u044d\u0442\u043e \u0432\u0438\u0437\u0438\u0442\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043b\u0435\u0434 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043f\u043e\u0434\u043c\u0438\u0433\u043d\u0443\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0441\u043e\u0431\u0443\u044e \u0441\u0432\u044f\u0437\u044c, \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u0437 \u0431\u0435\u0437\u0434\u0443\u0448\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u043b\u044e\u0434\u044c\u043c\u0438 \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439. \u041e\u0442 <code>about:robots<\/code> \u0432 Firefox \u0434\u043e \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u043f\u043e\u043b\u0435\u0442\u043e\u0432 \u0432 \u0441\u0442\u0430\u0440\u043e\u043c Excel \u2014 \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u043a\u0438\u00bb \u0434\u0435\u043b\u0430\u044e\u0442 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043f\u043b\u0435\u0435. \u0412\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u044d\u0442\u043e\u0439 \u0438\u0434\u0435\u0435\u0439, \u043c\u044b \u0442\u043e\u0436\u0435 \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u044e\u0440\u043f\u0440\u0438\u0437.<\/p>\n<h2>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 PyQt6<\/h2>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0433\u0440\u043e\u0439. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0448\u044c\u0441\u044f \u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438: \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0438\u0433\u0443\u0440\u044b \u0438 \u0438\u0445 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435? \u041a\u0430\u043a \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f? \u041a\u0430\u043a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0446\u0438\u043a\u043b? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0448\u0430\u0433\u0430\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0430\u0439\u043b\u0430 <code>page_<\/code><a href=\"http:\/\/tetris.py\" rel=\"noopener noreferrer nofollow\"><code>tetris.py<\/code><\/a>.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cec\/4b7\/ca4\/cec4b7ca420e0fa3566a9ca6a056dda3.png\" alt=\"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 &quot;ChameleonLab&quot;. \u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb\" title=\"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 &quot;ChameleonLab&quot;. \u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb\" width=\"1444\" height=\"865\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/cec\/4b7\/ca4\/cec4b7ca420e0fa3566a9ca6a056dda3.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cec\/4b7\/ca4\/cec4b7ca420e0fa3566a9ca6a056dda3.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 &#171;ChameleonLab&#187;. \u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb<\/figcaption><\/div>\n<\/figure>\n<h3>\u0428\u0430\u0433 1: \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438\u0433\u0440\u044b<\/h3>\n<p>\u041d\u0430\u0448\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code><strong>Tetromino<\/strong><\/code>: \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u043d\u0443 \u0444\u0438\u0433\u0443\u0440\u043a\u0443 (\u0435\u0435 \u0444\u043e\u0440\u043c\u0443, \u0446\u0432\u0435\u0442, \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435).<\/p>\n<\/li>\n<li>\n<p><code><strong>TetrisBoard<\/strong><\/code>: \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432\u0441\u044e \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443: \u043f\u043e\u043b\u0435, \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p><code><strong>NextPieceWidget<\/strong><\/code>: \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0444\u0438\u0433\u0443\u0440\u044b.<\/p>\n<\/li>\n<li>\n<p><code><strong>TetrisPage<\/strong><\/code>: \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0428\u0430\u0433 2: \u0421\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u2014 Tetromino<\/h3>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u0441\u0435\u043c\u0438 \u0444\u0438\u0433\u0443\u0440 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u0431\u043b\u043e\u043a\u043e\u0432. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043a\u043e\u0440\u0442\u0435\u0436\u0435. \u041d\u043e\u043c\u0435\u0440 \u0432 <code>coords_table<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0444\u0438\u0433\u0443\u0440\u0435 \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0435\u0435 \u0446\u0432\u0435\u0442\u0430.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py class Tetromino:     coords_table = (         ((0, 0), (0, 0), (0, 0), (0, 0)),    # \u041f\u0443\u0441\u0442\u0430\u044f \u0444\u0438\u0433\u0443\u0440\u0430         ((0, -1), (0, 0), (-1, 0), (-1, 1)), # Z         ((0, -1), (0, 0), (1, 0), (1, 1)),   # S         ((0, -1), (0, 0), (0, 1), (0, 2)),   # I (\u041f\u0430\u043b\u043a\u0430)         ((-1, 0), (0, 0), (1, 0), (0, 1)),   # T         ((0, 0), (1, 0), (0, 1), (1, 1)),   # O (\u041a\u0432\u0430\u0434\u0440\u0430\u0442)         ((-1, -1), (0, -1), (0, 0), (0, 1)), # L         ((1, -1), (0, -1), (0, 0), (0, 1))   # J     )      def __init__(self, shape=0):         self.coords = [[0,0] for _ in range(4)]         self.piece_shape = 0         self.set_shape(shape)      def set_shape(self, shape):         table = self.coords_table[shape]         for i in range(4):             self.coords[i] = list(table[i])         self.piece_shape = shape <\/code><\/pre>\n<p>\u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u2014 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 <code>(x, y)<\/code> \u0432 <code>(-y, x)<\/code>. \u041a\u0432\u0430\u0434\u0440\u0430\u0442 (<code>shape = 5<\/code>) \u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py     def rotated(self):         if self.piece_shape == 5: # \u041a\u0432\u0430\u0434\u0440\u0430\u0442             return self         result = Tetromino(self.piece_shape)         for i in range(4):             result.coords[i][0] = -self.y(i)             result.coords[i][1] = self.x(i)         return result <\/code><\/pre>\n<h3>\u0428\u0430\u0433 3: \u0418\u0433\u0440\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 TetrisBoard \u2014 \u043c\u043e\u0437\u0433 \u0438\u0433\u0440\u044b<\/h3>\n<p>\u042d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u043d\u0430\u0441\u044b\u0449\u0435\u043d\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441.<\/p>\n<p><strong>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0446\u0438\u043a\u043b:<\/strong> \u041f\u043e\u043b\u0435 10&#215;22 \u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430, \u0433\u0434\u0435 <code>0<\/code> \u2014 \u043f\u0443\u0441\u0442\u0430\u044f \u044f\u0447\u0435\u0439\u043a\u0430. \u0417\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 <code>QBasicTimer<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <code>timerEvent<\/code> \u043a\u0430\u0436\u0434\u044b\u0435 400 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0444\u0438\u0433\u0443\u0440\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py class TetrisBoard(QtWidgets.QFrame):     BoardWidth = 10     BoardHeight = 22     Speed = 400      def __init__(self):         super().__init__()         self.timer = QtCore.QBasicTimer()         self.board = [] # \u0411\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u0432 init_game()         # ...      def timerEvent(self, event):         if event.timerId() == self.timer.timerId() and self.is_started and not self.is_paused:             self.one_line_down() # \u0414\u0432\u0438\u0433\u0430\u0435\u043c \u0444\u0438\u0433\u0443\u0440\u0443 \u0432\u043d\u0438\u0437         else:             super().timerEvent(event) <\/code><\/pre>\n<p><strong>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0432\u043e\u0434\u0430 \u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439:<\/strong> \u042d\u0442\u043e \u0441\u0430\u043c\u0430\u044f \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0444\u0438\u0433\u0443\u0440\u0443, \u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c <code>try_move<\/code>. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u043d\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c (\u0432 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u043f\u043e\u043b\u044f \u0438 \u043d\u0435 \u043f\u043e\u0432\u0435\u0440\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432). \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430, \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0444\u0438\u0433\u0443\u0440\u044b (<code>self.cur_x<\/code>, <code>self.cur_y<\/code>) \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py def keyPressEvent(self, event):     # ...     key = event.key()     if key == QtCore.Qt.Key.Key_Left:         self.try_move(self.cur_piece, self.cur_x - 1, self.cur_y)     elif key == QtCore.Qt.Key.Key_Right:         self.try_move(self.cur_piece, self.cur_x + 1, self.cur_y)     elif key == QtCore.Qt.Key.Key_Up:         self.try_move(self.cur_piece.rotated(), self.cur_x, self.cur_y)     # ...  def try_move(self, new_piece, new_x, new_y):     # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 4 \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0433\u0443\u0440\u044b     for i in range(4):         x = new_x + new_piece.x(i)         y = new_y + new_piece.y(i)         # \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u0437\u0430\u043d\u044f\u0442\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443...         if not (0 &lt;= x &lt; self.BoardWidth and 0 &lt;= y &lt; self.BoardHeight and self.shape_at(x, y) == 0):             return False # ...\u0442\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e      # \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u044b, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u0438\u0433\u0443\u0440\u0443 \u0438 \u0435\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u044e     self.cur_piece = new_piece     self.cur_x = new_x     self.cur_y = new_y     self.update() # \u041f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0435     return True <\/code><\/pre>\n<p><strong>\u041f\u0430\u0434\u0435\u043d\u0438\u0435 \u0438 &#171;\u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435&#187; \u0444\u0438\u0433\u0443\u0440\u044b:<\/strong> \u041a\u043e\u0433\u0434\u0430 <code>try_move<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>False<\/code> \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 \u0432\u043d\u0438\u0437, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0444\u0438\u0433\u0443\u0440\u0430 \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u0438\u043b\u0430\u0441\u044c. \u041c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c <code>piece_dropped<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f &#171;\u0432\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442&#187; \u0431\u043b\u043e\u043a\u0438 \u0444\u0438\u0433\u0443\u0440\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 <code>self.board<\/code>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438.<\/p>\n<p><strong>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0439 \u0438 \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u043e\u0447\u043a\u043e\u0432:<\/strong> \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438. \u041c\u044b \u0438\u0449\u0435\u043c \u0432\u0441\u0435 \u0440\u044f\u0434\u044b, \u0433\u0434\u0435 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0441\u0442\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 (<code>0<\/code>). \u0417\u0430\u0442\u0435\u043c, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u044f\u0434\u0430 (\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445), \u043c\u044b \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u0432\u044b\u0448\u0435 \u0440\u044f\u0434\u044b \u043d\u0430 \u043e\u0434\u043d\u0443 \u043a\u043b\u0435\u0442\u043a\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py def remove_full_lines(self):     num_full_lines = 0     full_rows = []     for i in range(self.BoardHeight):         # \u0415\u0441\u043b\u0438 \u0432 \u0440\u044f\u0434\u0443 i \u043d\u0435\u0442 \u043d\u0443\u043b\u0435\u0439 (\u043f\u0443\u0441\u0442\u044b\u0445 \u043a\u043b\u0435\u0442\u043e\u043a), \u043e\u043d \u043f\u043e\u043b\u043d\u044b\u0439         if all(self.shape_at(j, i) != 0 for j in range(self.BoardWidth)):             full_rows.append(i)      if full_rows:         for row in sorted(full_rows, reverse=True):             # \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0443\u0434\u0430\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0440\u044f\u0434\u0430 \u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u0430...             for r in range(row, 0, -1):                 # ...\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u044b\u0448\u0435                 for c in range(self.BoardWidth):                     self.set_shape_at(c, r, self.shape_at(c, r - 1))                  # \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0447\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c         self.score += 10 * len(full_rows)         self.scoreChanged.emit(self.score) <\/code><\/pre>\n<p><strong>\u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430:<\/strong> \u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 <code>paintEvent<\/code>. \u041c\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 <code>self.board<\/code> \u0438, \u0435\u0441\u043b\u0438 \u044f\u0447\u0435\u0439\u043a\u0430 \u043d\u0435 \u043f\u0443\u0441\u0442\u0430\u044f, \u0440\u0438\u0441\u0443\u0435\u043c \u0432 \u0435\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>draw_square<\/code>. \u041f\u043e\u0432\u0435\u0440\u0445 &#171;\u0437\u0430\u043c\u043e\u0440\u043e\u0436\u0435\u043d\u043d\u044b\u0445&#187; \u0431\u043b\u043e\u043a\u043e\u0432 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043f\u0430\u0434\u0430\u044e\u0449\u0430\u044f \u0444\u0438\u0433\u0443\u0440\u0430.<\/p>\n<h3>\u0428\u0430\u0433 4: \u0421\u0431\u043e\u0440\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 TetrisPage<\/h3>\n<p>\u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0442\u0440\u0435\u0445\u043a\u043e\u043b\u043e\u043d\u043e\u0447\u043d\u043e\u043c \u043c\u0430\u043a\u0435\u0442\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>scoreChanged<\/code>) \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043b\u043e\u0442\u0430\u043c\u0438 (\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 <code>QLabel<\/code>).<\/p>\n<h2>\u041a\u0430\u043a \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438?<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0412 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (<code>main_<\/code><a href=\"http:\/\/window.py\" rel=\"noopener noreferrer nofollow\"><code>window.py<\/code><\/a>) \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0444\u0438\u043b\u044c\u0442\u0440 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0430 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u043e\u0434 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043b\u0438\u043a\u0438 \u043c\u044b\u0448\u0438, \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 5 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043a\u043b\u0438\u043a\u043e\u0432 \u0437\u0430 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0432\u0435\u0434\u0435\u043d, \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0438\u0434 \u043d\u0430 <code>TetrisPage<\/code>.<\/p>\n<pre><code class=\"python\"># ui\/main_window.py def eventFilter(self, obj, event):     # \u0415\u0441\u043b\u0438 \u043a\u043b\u0438\u043a\u043d\u0443\u043b\u0438 \u043f\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0443...     if obj is self.logo_label and event.type() == QtCore.QEvent.Type.MouseButtonPress:         now = datetime.datetime.now()         # \u041e\u0442\u0441\u0435\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0435 \u043a\u043b\u0438\u043a\u0438 (\u0441\u0442\u0430\u0440\u0448\u0435 2 \u0441\u0435\u043a\u0443\u043d\u0434)         self.logo_clicks = [t for t in self.logo_clicks if (now - t).total_seconds() &lt; 2]         self.logo_clicks.append(now)                  # \u0415\u0441\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c 5 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043a\u043b\u0438\u043a\u043e\u0432 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443!         if len(self.logo_clicks) &gt;= 5:              self.logo_clicks = []              self.stacked_widget.setCurrentWidget(self.tetris_page)             return True # \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e     return super().eventFilter(obj, event) <\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0437\u0430 \u043a\u0430\u0436\u0443\u0449\u0435\u0439\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u0430\u00bb \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438. \u0415\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u2014 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u0438 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0444\u0438\u0437\u0438\u043a\u0443.<\/p>\n<p>\u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb \u2014 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0440\u044b\u0442\u0430\u044f \u0438\u0433\u0440\u0430, \u0430 \u0437\u043d\u0430\u043a \u0443\u0432\u0430\u0436\u0435\u043d\u0438\u044f \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0435, \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0430\u0437\u0432\u043b\u0435\u0447\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434, \u043d\u043e \u0438 \u0434\u0443\u0448\u0443. \u041d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u043d\u0430\u0448 \u0433\u0430\u0439\u0434 \u0431\u044b\u043b \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0448 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb \u0441\u0430\u043c\u0438!<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u00abSteganographia\u00bb \u043e\u0442 ChameleonLab \u0434\u043b\u044f Windows \u0438 macOS \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/chalab.ru\" rel=\"noopener noreferrer nofollow\"><strong>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435<\/strong><\/a>.<\/p>\n<p>\u0410 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u0432 \u043a\u0443\u0440\u0441\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439, \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u0435\u0434\u0438\u043d\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430\u043c\u0438, \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 Telegram-\u043a\u0430\u043d\u0430\u043b\u0443: <a href=\"https:\/\/t.me\/ChameleonLab\" rel=\"noopener noreferrer nofollow\"><strong>https:\/\/t.me\/ChameleonLab<\/strong><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><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:\/\/habr.com\/ru\/articles\/943338\/\"> https:\/\/habr.com\/ru\/articles\/943338\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0432 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u0432\u043b\u0435\u0447\u044c\u0441\u044f \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0434\u043b\u044f \u0434\u0443\u0448\u0438. \u0427\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u043d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435. \u0427\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u0438\u0435 &#171;\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442\u044b&#187; \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u044f\u0439\u0446\u0430\u043c\u0438\u00bb \u2014 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0438 \u0437\u0430\u0447\u0435\u043c \u043c\u044b \u0441\u043f\u0440\u044f\u0442\u0430\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/articles\/938868\/\" rel=\"noopener noreferrer nofollow\"><strong>\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043b\u044f \u0441\u0442\u0435\u0433\u0430\u043d\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u00abChameleonLab\u00bb<\/strong><\/a> \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb. \u042d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u043a\u0435\u00bb, \u0430 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u0434\u0430 \u043d\u0430 Python \u0438 PyQt6, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043a\u0430\u0436\u0443\u0449\u0443\u044e\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u0430\u00bb \u2014 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439.<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u044b\u0435 \u044f\u0439\u0446\u0430\u00bb?<\/h2>\n<p>\u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb \u2014 \u044d\u0442\u043e \u0432\u0438\u0437\u0438\u0442\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043b\u0435\u0434 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u043f\u043e\u0434\u043c\u0438\u0433\u043d\u0443\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0441\u043e\u0431\u0443\u044e \u0441\u0432\u044f\u0437\u044c, \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u0437 \u0431\u0435\u0437\u0434\u0443\u0448\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 \u043b\u044e\u0434\u044c\u043c\u0438 \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439. \u041e\u0442 <code>about:robots<\/code> \u0432 Firefox \u0434\u043e \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u043f\u043e\u043b\u0435\u0442\u043e\u0432 \u0432 \u0441\u0442\u0430\u0440\u043e\u043c Excel \u2014 \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u043a\u0438\u00bb \u0434\u0435\u043b\u0430\u044e\u0442 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043f\u043b\u0435\u0435. \u0412\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u044d\u0442\u043e\u0439 \u0438\u0434\u0435\u0435\u0439, \u043c\u044b \u0442\u043e\u0436\u0435 \u0440\u0435\u0448\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u044e\u0440\u043f\u0440\u0438\u0437.<\/p>\n<h2>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 PyQt6<\/h2>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0433\u0440\u043e\u0439. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0448\u044c\u0441\u044f \u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438: \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0438\u0433\u0443\u0440\u044b \u0438 \u0438\u0445 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435? \u041a\u0430\u043a \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f? \u041a\u0430\u043a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0446\u0438\u043a\u043b? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0448\u0430\u0433\u0430\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0430\u0439\u043b\u0430 <code>page_<\/code><a href=\"http:\/\/tetris.py\" rel=\"noopener noreferrer nofollow\"><code>tetris.py<\/code><\/a>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 &#171;ChameleonLab&#187;. \u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb<\/figcaption><\/div>\n<\/figure>\n<h3>\u0428\u0430\u0433 1: \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438\u0433\u0440\u044b<\/h3>\n<p>\u041d\u0430\u0448\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code><strong>Tetromino<\/strong><\/code>: \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u043d\u0443 \u0444\u0438\u0433\u0443\u0440\u043a\u0443 (\u0435\u0435 \u0444\u043e\u0440\u043c\u0443, \u0446\u0432\u0435\u0442, \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435).<\/p>\n<\/li>\n<li>\n<p><code><strong>TetrisBoard<\/strong><\/code>: \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432\u0441\u044e \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443: \u043f\u043e\u043b\u0435, \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p><code><strong>NextPieceWidget<\/strong><\/code>: \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0444\u0438\u0433\u0443\u0440\u044b.<\/p>\n<\/li>\n<li>\n<p><code><strong>TetrisPage<\/strong><\/code>: \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0428\u0430\u0433 2: \u0421\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u2014 Tetromino<\/h3>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u0441\u0435\u043c\u0438 \u0444\u0438\u0433\u0443\u0440 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u0431\u043b\u043e\u043a\u043e\u0432. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043a\u043e\u0440\u0442\u0435\u0436\u0435. \u041d\u043e\u043c\u0435\u0440 \u0432 <code>coords_table<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0444\u0438\u0433\u0443\u0440\u0435 \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0435\u0435 \u0446\u0432\u0435\u0442\u0430.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py class Tetromino:     coords_table = (         ((0, 0), (0, 0), (0, 0), (0, 0)),    # \u041f\u0443\u0441\u0442\u0430\u044f \u0444\u0438\u0433\u0443\u0440\u0430         ((0, -1), (0, 0), (-1, 0), (-1, 1)), # Z         ((0, -1), (0, 0), (1, 0), (1, 1)),   # S         ((0, -1), (0, 0), (0, 1), (0, 2)),   # I (\u041f\u0430\u043b\u043a\u0430)         ((-1, 0), (0, 0), (1, 0), (0, 1)),   # T         ((0, 0), (1, 0), (0, 1), (1, 1)),   # O (\u041a\u0432\u0430\u0434\u0440\u0430\u0442)         ((-1, -1), (0, -1), (0, 0), (0, 1)), # L         ((1, -1), (0, -1), (0, 0), (0, 1))   # J     )      def __init__(self, shape=0):         self.coords = [[0,0] for _ in range(4)]         self.piece_shape = 0         self.set_shape(shape)      def set_shape(self, shape):         table = self.coords_table[shape]         for i in range(4):             self.coords[i] = list(table[i])         self.piece_shape = shape <\/code><\/pre>\n<p>\u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u2014 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 <code>(x, y)<\/code> \u0432 <code>(-y, x)<\/code>. \u041a\u0432\u0430\u0434\u0440\u0430\u0442 (<code>shape = 5<\/code>) \u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py     def rotated(self):         if self.piece_shape == 5: # \u041a\u0432\u0430\u0434\u0440\u0430\u0442             return self         result = Tetromino(self.piece_shape)         for i in range(4):             result.coords[i][0] = -self.y(i)             result.coords[i][1] = self.x(i)         return result <\/code><\/pre>\n<h3>\u0428\u0430\u0433 3: \u0418\u0433\u0440\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 TetrisBoard \u2014 \u043c\u043e\u0437\u0433 \u0438\u0433\u0440\u044b<\/h3>\n<p>\u042d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u043d\u0430\u0441\u044b\u0449\u0435\u043d\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441.<\/p>\n<p><strong>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0446\u0438\u043a\u043b:<\/strong> \u041f\u043e\u043b\u0435 10&#215;22 \u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430, \u0433\u0434\u0435 <code>0<\/code> \u2014 \u043f\u0443\u0441\u0442\u0430\u044f \u044f\u0447\u0435\u0439\u043a\u0430. \u0417\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 <code>QBasicTimer<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <code>timerEvent<\/code> \u043a\u0430\u0436\u0434\u044b\u0435 400 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0444\u0438\u0433\u0443\u0440\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py class TetrisBoard(QtWidgets.QFrame):     BoardWidth = 10     BoardHeight = 22     Speed = 400      def __init__(self):         super().__init__()         self.timer = QtCore.QBasicTimer()         self.board = [] # \u0411\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u0432 init_game()         # ...      def timerEvent(self, event):         if event.timerId() == self.timer.timerId() and self.is_started and not self.is_paused:             self.one_line_down() # \u0414\u0432\u0438\u0433\u0430\u0435\u043c \u0444\u0438\u0433\u0443\u0440\u0443 \u0432\u043d\u0438\u0437         else:             super().timerEvent(event) <\/code><\/pre>\n<p><strong>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0432\u043e\u0434\u0430 \u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0439:<\/strong> \u042d\u0442\u043e \u0441\u0430\u043c\u0430\u044f \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0444\u0438\u0433\u0443\u0440\u0443, \u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c <code>try_move<\/code>. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u043d\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c (\u0432 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u043f\u043e\u043b\u044f \u0438 \u043d\u0435 \u043f\u043e\u0432\u0435\u0440\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432). \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430, \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0444\u0438\u0433\u0443\u0440\u044b (<code>self.cur_x<\/code>, <code>self.cur_y<\/code>) \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py def keyPressEvent(self, event):     # ...     key = event.key()     if key == QtCore.Qt.Key.Key_Left:         self.try_move(self.cur_piece, self.cur_x - 1, self.cur_y)     elif key == QtCore.Qt.Key.Key_Right:         self.try_move(self.cur_piece, self.cur_x + 1, self.cur_y)     elif key == QtCore.Qt.Key.Key_Up:         self.try_move(self.cur_piece.rotated(), self.cur_x, self.cur_y)     # ...  def try_move(self, new_piece, new_x, new_y):     # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 4 \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0433\u0443\u0440\u044b     for i in range(4):         x = new_x + new_piece.x(i)         y = new_y + new_piece.y(i)         # \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0431\u043b\u043e\u043a \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u0437\u0430\u043d\u044f\u0442\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443...         if not (0 &lt;= x &lt; self.BoardWidth and 0 &lt;= y &lt; self.BoardHeight and self.shape_at(x, y) == 0):             return False # ...\u0442\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e      # \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u044b, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0444\u0438\u0433\u0443\u0440\u0443 \u0438 \u0435\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u044e     self.cur_piece = new_piece     self.cur_x = new_x     self.cur_y = new_y     self.update() # \u041f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0435     return True <\/code><\/pre>\n<p><strong>\u041f\u0430\u0434\u0435\u043d\u0438\u0435 \u0438 &#171;\u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435&#187; \u0444\u0438\u0433\u0443\u0440\u044b:<\/strong> \u041a\u043e\u0433\u0434\u0430 <code>try_move<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>False<\/code> \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 \u0432\u043d\u0438\u0437, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0444\u0438\u0433\u0443\u0440\u0430 \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u0438\u043b\u0430\u0441\u044c. \u041c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c <code>piece_dropped<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f &#171;\u0432\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442&#187; \u0431\u043b\u043e\u043a\u0438 \u0444\u0438\u0433\u0443\u0440\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 <code>self.board<\/code>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438.<\/p>\n<p><strong>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0439 \u0438 \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u043e\u0447\u043a\u043e\u0432:<\/strong> \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438. \u041c\u044b \u0438\u0449\u0435\u043c \u0432\u0441\u0435 \u0440\u044f\u0434\u044b, \u0433\u0434\u0435 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0441\u0442\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 (<code>0<\/code>). \u0417\u0430\u0442\u0435\u043c, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u044f\u0434\u0430 (\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u043d\u0438\u0437\u0443 \u0432\u0432\u0435\u0440\u0445), \u043c\u044b \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u0432\u044b\u0448\u0435 \u0440\u044f\u0434\u044b \u043d\u0430 \u043e\u0434\u043d\u0443 \u043a\u043b\u0435\u0442\u043a\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<pre><code class=\"python\"># ui\/page_tetris.py def remove_full_lines(self):     num_full_lines = 0     full_rows = []     for i in range(self.BoardHeight):         # \u0415\u0441\u043b\u0438 \u0432 \u0440\u044f\u0434\u0443 i \u043d\u0435\u0442 \u043d\u0443\u043b\u0435\u0439 (\u043f\u0443\u0441\u0442\u044b\u0445 \u043a\u043b\u0435\u0442\u043e\u043a), \u043e\u043d \u043f\u043e\u043b\u043d\u044b\u0439         if all(self.shape_at(j, i) != 0 for j in range(self.BoardWidth)):             full_rows.append(i)      if full_rows:         for row in sorted(full_rows, reverse=True):             # \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0443\u0434\u0430\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0440\u044f\u0434\u0430 \u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u0430...             for r in range(row, 0, -1):                 # ...\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u044b\u0448\u0435                 for c in range(self.BoardWidth):                     self.set_shape_at(c, r, self.shape_at(c, r - 1))                  # \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0447\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c         self.score += 10 * len(full_rows)         self.scoreChanged.emit(self.score) <\/code><\/pre>\n<p><strong>\u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430:<\/strong> \u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 <code>paintEvent<\/code>. \u041c\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 <code>self.board<\/code> \u0438, \u0435\u0441\u043b\u0438 \u044f\u0447\u0435\u0439\u043a\u0430 \u043d\u0435 \u043f\u0443\u0441\u0442\u0430\u044f, \u0440\u0438\u0441\u0443\u0435\u043c \u0432 \u0435\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>draw_square<\/code>. \u041f\u043e\u0432\u0435\u0440\u0445 &#171;\u0437\u0430\u043c\u043e\u0440\u043e\u0436\u0435\u043d\u043d\u044b\u0445&#187; \u0431\u043b\u043e\u043a\u043e\u0432 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043f\u0430\u0434\u0430\u044e\u0449\u0430\u044f \u0444\u0438\u0433\u0443\u0440\u0430.<\/p>\n<h3>\u0428\u0430\u0433 4: \u0421\u0431\u043e\u0440\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 TetrisPage<\/h3>\n<p>\u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0442\u0440\u0435\u0445\u043a\u043e\u043b\u043e\u043d\u043e\u0447\u043d\u043e\u043c \u043c\u0430\u043a\u0435\u0442\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>scoreChanged<\/code>) \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043b\u043e\u0442\u0430\u043c\u0438 (\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 <code>QLabel<\/code>).<\/p>\n<h2>\u041a\u0430\u043a \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438?<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0412 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (<code>main_<\/code><a href=\"http:\/\/window.py\" rel=\"noopener noreferrer nofollow\"><code>window.py<\/code><\/a>) \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0444\u0438\u043b\u044c\u0442\u0440 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0430 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041a\u043e\u0434 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043b\u0438\u043a\u0438 \u043c\u044b\u0448\u0438, \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 5 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043a\u043b\u0438\u043a\u043e\u0432 \u0437\u0430 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0432\u0435\u0434\u0435\u043d, \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0438\u0434 \u043d\u0430 <code>TetrisPage<\/code>.<\/p>\n<pre><code class=\"python\"># ui\/main_window.py def eventFilter(self, obj, event):     # \u0415\u0441\u043b\u0438 \u043a\u043b\u0438\u043a\u043d\u0443\u043b\u0438 \u043f\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0443...     if obj is self.logo_label and event.type() == QtCore.QEvent.Type.MouseButtonPress:         now = datetime.datetime.now()         # \u041e\u0442\u0441\u0435\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0435 \u043a\u043b\u0438\u043a\u0438 (\u0441\u0442\u0430\u0440\u0448\u0435 2 \u0441\u0435\u043a\u0443\u043d\u0434)         self.logo_clicks = [t for t in self.logo_clicks if (now - t).total_seconds() &lt; 2]         self.logo_clicks.append(now)                  # \u0415\u0441\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c 5 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043a\u043b\u0438\u043a\u043e\u0432 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443!         if len(self.logo_clicks) &gt;= 5:              self.logo_clicks = []              self.stacked_widget.setCurrentWidget(self.tetris_page)             return True # \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e     return super().eventFilter(obj, event) <\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0437\u0430 \u043a\u0430\u0436\u0443\u0449\u0435\u0439\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u0430\u00bb \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438. \u0415\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u2014 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u0438 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u0444\u0438\u0437\u0438\u043a\u0443.<\/p>\n<p>\u00ab\u041f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0439\u0446\u043e\u00bb \u2014 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0440\u044b\u0442\u0430\u044f \u0438\u0433\u0440\u0430, \u0430 \u0437\u043d\u0430\u043a \u0443\u0432\u0430\u0436\u0435\u043d\u0438\u044f \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0435, \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0430\u0437\u0432\u043b\u0435\u0447\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434, \u043d\u043e \u0438 \u0434\u0443\u0448\u0443. \u041d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u043d\u0430\u0448 \u0433\u0430\u0439\u0434 \u0431\u044b\u043b \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u0448 \u00ab\u0422\u0435\u0442\u0440\u0438\u0441\u00bb \u0441\u0430\u043c\u0438!<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u00abSteganographia\u00bb \u043e\u0442 ChameleonLab \u0434\u043b\u044f Windows \u0438 macOS \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/chalab.ru\" rel=\"noopener noreferrer nofollow\"><strong>\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435<\/strong><\/a>.<\/p>\n<p>\u0410 \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u0432 \u043a\u0443\u0440\u0441\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439, \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u0435\u0434\u0438\u043d\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430\u043c\u0438, \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 Telegram-\u043a\u0430\u043d\u0430\u043b\u0443: <a href=\"https:\/\/t.me\/ChameleonLab\" rel=\"noopener noreferrer nofollow\"><strong>https:\/\/t.me\/ChameleonLab<\/strong><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><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:\/\/habr.com\/ru\/articles\/943338\/\"> https:\/\/habr.com\/ru\/articles\/943338\/<\/a><br \/><\/br><\/br><\/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-473765","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/473765","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=473765"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/473765\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=473765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=473765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=473765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}