{"id":616,"date":"2019-10-27T20:12:42","date_gmt":"2019-10-27T11:12:42","guid":{"rendered":"http:\/\/hirlab.net\/nblog\/?p=616"},"modified":"2020-01-20T18:06:50","modified_gmt":"2020-01-20T09:06:50","slug":"gui%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b2%e3%83%bc%e3%83%a0%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%90python%e3%80%91","status":"publish","type":"post","link":"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/","title":{"rendered":"GUI\u306e\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u3066\u307f\u305f\u3010Python\u3011"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_11 counter-hierarchy counter-decimal ez-toc-light-blue\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0\" title=\"\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\">\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E5%85%A8%E4%BD%93%E7%9A%84%E3%81%AA%E3%83%AB%E3%83%BC%E3%83%AB\" title=\"\u5168\u4f53\u7684\u306a\u30eb\u30fc\u30eb\">\u5168\u4f53\u7684\u306a\u30eb\u30fc\u30eb<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E3%82%BB%E3%83%AB\" title=\"\u30bb\u30eb\">\u30bb\u30eb<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E4%B8%96%E4%BB%A3%E3%82%92%E9%80%B2%E3%82%81%E3%82%8B\" title=\"\u4e16\u4ee3\u3092\u9032\u3081\u308b\">\u4e16\u4ee3\u3092\u9032\u3081\u308b<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E7%94%9F%E5%AD%98%E3%83%AB%E3%83%BC%E3%83%AB\" title=\"\u751f\u5b58\u30eb\u30fc\u30eb\">\u751f\u5b58\u30eb\u30fc\u30eb<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E5%AE%9F%E8%A3%85%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B\" title=\"\u5b9f\u88c5\u3057\u3066\u307f\u308b\">\u5b9f\u88c5\u3057\u3066\u307f\u308b<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E3%82%BB%E3%83%AB%E3%81%AE%E7%AE%A1%E7%90%86_cells_py\" title=\"\u30bb\u30eb\u306e\u7ba1\u7406 - cells.py\">\u30bb\u30eb\u306e\u7ba1\u7406 - cells.py<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0%E3%81%AE%E6%A0%B8_lifegame_py\" title=\"\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306e\u6838 - lifegame.py\">\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306e\u6838 - lifegame.py<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#GUI%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0_frame_py\" title=\"GUI\u30d5\u30ec\u30fc\u30e0 - frame.py\">GUI\u30d5\u30ec\u30fc\u30e0 - frame.py<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#GUI%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%97_gui_py\" title=\"GUI\u547c\u3073\u51fa\u3057 - gui.py\">GUI\u547c\u3073\u51fa\u3057 - gui.py<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E5%8B%95%E3%81%8B%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B\" title=\"\u52d5\u304b\u3057\u3066\u307f\u308b\">\u52d5\u304b\u3057\u3066\u307f\u308b<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/hirlab.net\/nblog\/category\/programming\/art_616\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" title=\"\u3055\u3044\u3054\u306b\">\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0\"><\/span>\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u3068\u306f\uff0c\u3082\u3063\u3068\u3082\u30b7\u30f3\u30d7\u30eb\u306a<mark>\u751f\u547d\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0<\/mark>\u3067\u3042\u308b\uff0e<\/p>\n<p>\u539f\u8a9e\u3067\u306f <strong><mark>Conway's Game of Life<\/mark><\/strong> \u307e\u305f\u306f\u7565\u3057\u3066 <strong><mark>Life<\/mark><\/strong> \u3068\u547c\u3070\u308c\u308b\uff0e<\/p>\n<p>\u305d\u306e\u540d\u306e\u901a\u308a\uff0cConway\u3055\u3093\u304c\u8003\u6848\u3057\u305f\u30b2\u30fc\u30e0\u3067\uff0c1970\u5e74\u306b\u767a\u8868\u3055\u308c\u305f\uff0e<\/p>\n<p>\u30eb\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3059\u308b\u304c\uff0c\u305d\u306e\u5358\u7d14\u306a\u30eb\u30fc\u30eb\u304b\u3089\u6d3e\u751f\u3059\u308b\u591a\u304f\u306e\u96e3\u554f\u306e\u5b58\u5728\u306b\u3088\u308a\uff0c\u591a\u304f\u306e\u6570\u5b66\u8005\u305f\u3061\u3092\u865c\u306b\u3057\uff0c\u4eca\u3082\u306a\u304a\u611b\u3055\u308c\u7d9a\u3051\u3066\u3044\u308b\u30b2\u30fc\u30e0\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4eca\u56de\uff0c\u3053\u306e<mark>\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u3092Python\u3067\u4f5c\u6210\u3057\u3066\u307f\u305f<\/mark>\u306e\u3067\u7d39\u4ecb\u3059\u308b\uff0e<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-621\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/img1.png\" alt=\"Conway's Game of Life\" width=\"500\" height=\"566\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/img1.png 1062w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/img1-265x300.png 265w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/img1-768x869.png 768w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/img1-905x1024.png 905w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u30bd\u30fc\u30b9\u306fGithub\u306b\u3042\u3052\u3066\u3044\u308b\u306e\u3067\uff0c\u305c\u3072\u89e6\u3063\u3066\u307f\u3066\u307b\u3057\u3044\uff0e<\/p>\n<p><a href=\"https:\/\/github.com\/HiroshiARAKI\/lifegame\" target=\"_blank\" rel=\"noopener noreferrer\">\u3010HiroshiARAKI\/lifegame: Simple Conway's Game of Life Simulator on Python!!\u3011<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%85%A8%E4%BD%93%E7%9A%84%E3%81%AA%E3%83%AB%E3%83%BC%E3%83%AB\"><\/span>\u5168\u4f53\u7684\u306a\u30eb\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u672c\u984c\u306b\u5165\u308b\u524d\u306b\u30eb\u30fc\u30eb\u304b\u3089\u8aac\u660e\u3057\u3066\u3044\u304f\uff0e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%BB%E3%83%AB\"><\/span>\u30bb\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u307e\u305a\u4e0a\u306e\u56f3\u3067\u8868\u3059\u3088\u3046\u306b\uff0c<mark>\u30bb\u30eb(Cells)<\/mark>\u3068\u547c\u3070\u308c\u308b\u683c\u5b50\u72b6\u306e\u30de\u30b9\u304c\u5b58\u5728\u3059\u308b\uff0e<\/p>\n<p>\u3053\u3044\u3064\u3089\u306f\uff0c\u300c\u751f\u300d\u304b\u300c\u6b7b\u300d\u306e\u4e8c\u3064\u306e\u72b6\u614b\u3092\u6301\u3064\uff0e<\/p>\n<p>\u4e0a\u306e\u56f3\u3067\u3044\u3046\u3068\u9ed2\u304c\u751f\uff0c\u767d\u304c\u6b7b\u3067\u3042\u308b\uff0e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%B8%96%E4%BB%A3%E3%82%92%E9%80%B2%E3%82%81%E3%82%8B\"><\/span>\u4e16\u4ee3\u3092\u9032\u3081\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306f\u4e16\u4ee3\u3092\u9032\u3081\u308b\u5ea6\u306b\uff0c\u3042\u308b\u30eb\u30fc\u30eb\u306b\u3057\u305f\u304c\u3063\u3066\uff0c<mark>\u6b21\u306e\u4e16\u4ee3\u3067\u306e\u81ea\u5206\u306e\u72b6\u614b(\u751for\u6b7b)\u304c\u6c7a\u307e\u308b<\/mark>\uff0e<\/p>\n<p>\u6b7b\u3093\u3067\u3044\u305f\u30bb\u30eb\u304b\u3089\u65b0\u305f\u306b<strong>\u8a95\u751f<\/strong>\u3059\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3057\uff0c\u751f\u304d\u3066\u3044\u305f\u30bb\u30eb\u304c<strong>\u6b7b\u306c<\/strong>\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\n<p>\u306f\u305f\u307e\u305f<strong>\u751f\u304d\u5ef6\u3073\u308b<\/strong>\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\n<p>\u3053\u308c\u3089\u306f\u6b21\u306b\u7d39\u4ecb\u3059\u308b\u30eb\u30fc\u30eb\u3067\u6c7a\u307e\u308b\uff0e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E7%94%9F%E5%AD%98%E3%83%AB%E3%83%BC%E3%83%AB\"><\/span>\u751f\u5b58\u30eb\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306b\u306f\u4ee5\u4e0b\u306e<mark><strong>4\u3064\u30eb\u30fc\u30eb<\/strong><\/mark>\u306e\u307f\u304c\u5b58\u5728\u3059\u308b\uff0e<\/p>\n<h4>\u8a95\u751f<\/h4>\n<p>\u6b7b\u3093\u3067\u3044\u308b\u30bb\u30eb\u306e\u5468\u308a\u306b\uff0c<mark>\u3061\u3087\u3046\u30693\u3064<\/mark>\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u304c\u5b58\u5728\u3059\u308c\u3070\uff0c\u6b21\u306e\u4e16\u4ee3\u3067\u305d\u306e\u30bb\u30eb\u306f\u8a95\u751f\u3059\u308b\uff0e<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-624 size-medium\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/birth-259x300.png\" alt=\"birth\" width=\"259\" height=\"300\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/birth-259x300.png 259w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/birth-768x889.png 768w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/birth-884x1024.png 884w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/birth.png 1000w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/p>\n<h4>\u751f\u5b58<\/h4>\n<p>\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u306e\u5468\u308a\u306b\uff0c<mark>\u751f\u304d\u305f\u30bb\u30eb\u304c2\u3064\u304b3\u3064\u5b58\u5728\u3059\u308c\u3070<\/mark>\uff0c\u305d\u306e\u30bb\u30eb\u306f\u751f\u304d\u6b8b\u308b\uff0e<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-625\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/survive-259x300.png\" alt=\"survive\" width=\"259\" height=\"300\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/survive-259x300.png 259w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/survive-768x889.png 768w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/survive-884x1024.png 884w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/survive.png 1000w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/p>\n<h4>\u904e\u758e\u6b7b<\/h4>\n<p>\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u306e\u5468\u308a\u306b\uff0c<mark>\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u304c1\u3064\u4ee5\u4e0b<\/mark>\u3067\u3042\u308c\u3070\uff0c\u305d\u306e\u30bb\u30eb\u306f\u6b7b\u306c\uff0e<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-628\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/sparse-259x300.png\" alt=\"sparse\" width=\"259\" height=\"300\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/sparse-259x300.png 259w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/sparse-768x889.png 768w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/sparse-884x1024.png 884w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/sparse.png 1000w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/p>\n<h4>\u904e\u5bc6\u6b7b<\/h4>\n<p>\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u306e\u5468\u308a\u306b\uff0c<mark>\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u304c4\u3064\u4ee5\u4e0a<\/mark>\u3042\u308c\u3070\uff0c\u305d\u306e\u30bb\u30eb\u306f\u6b7b\u306c\uff0e<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-629\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/dense-259x300.png\" alt=\"dense\" width=\"259\" height=\"300\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/dense-259x300.png 259w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/dense-768x889.png 768w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/dense-884x1024.png 884w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/dense.png 1000w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/p>\n<p><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- article-mid --><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-7123758399787647\"\n     data-ad-slot=\"2091992211\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%9F%E8%A3%85%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B\"><\/span>\u5b9f\u88c5\u3057\u3066\u307f\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4ee5\u4e0a\u306e\u30eb\u30fc\u30eb\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\uff0e<\/p>\n<p>\u3068\u3044\u3046\u304b\u3057\u3066\u307f\u305f\u306e\u3067\uff0c\u305d\u306e\u89e3\u8aac\u306b\u306a\u308b\u304c\u5168\u90e8\u306f\u3057\u304d\u308c\u306a\u3044\u306e\u3067\uff0c\u8981\u70b9\u306e\u307f\uff0e<\/p>\n<p>\u6700\u521d\u306b\u884c\u3063\u305f\u3088\u3046\u306b\uff0c\u30b3\u30fc\u30c9\u306f\u5168\u3066Github\u306b\u3042\u3052\u3066\u3042\u308b\u306e\u3067\uff0c\u624b\u5143\u306b\u843d\u3068\u3057\u3066\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u3066\u307b\u3057\u3044\uff0e<\/p>\n<p><a href=\"https:\/\/github.com\/HiroshiARAKI\/lifegame\" target=\"_blank\" rel=\"noopener noreferrer\">\u3010HiroshiARAKI\/lifegame: Simple Conway's Game of Life Simulator on Python!!\u3011<\/a><\/p>\n<p>\u4eca\u56de\u5b9f\u88c5\u3059\u308b\u306b\u3042\u305f\u308a\uff0c<mark>4\u3064\u306e\u30af\u30e9\u30b9(\u30d5\u30a1\u30a4\u30eb)<\/mark>\u304b\u3089\u6210\u308a\u7acb\u3063\u3066\u3044\u308b\uff0e<\/p>\n<p>\u305d\u308c\u305e\u308c\u306e\u30af\u30e9\u30b9\u3092\u56f3\u5f0f\u5316\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\uff0e<\/p>\n<p>\u306a\u305c\u3053\u3093\u306a\u8907\u96d1\u306b\u306a\u3063\u305f\u306e\u304b\u3068\u3044\u3046\u3068\uff0c\u50d5\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u8a08\u753b\u6027\u306e\u7121\u3055\u306e\u305b\u3044\u3067\u3042\u308b...<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-large wp-image-631\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/class-1024x570.png\" alt=\"class\" width=\"1024\" height=\"570\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/class-1024x570.png 1024w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/class-300x167.png 300w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/class-768x427.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%BB%E3%83%AB%E3%81%AE%E7%AE%A1%E7%90%86_cells_py\"><\/span>\u30bb\u30eb\u306e\u7ba1\u7406 - cells.py<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Cells\u30af\u30e9\u30b9\u3067\u306f\u4e3b\u306b\uff0c\u30bb\u30eb\u306e\u7ba1\u7406\u3092\u884c\u3046\uff0e<\/p>\n<p>\u3068\u3044\u3063\u3066\u3082\u5927\u3057\u305f\u3053\u3068\u306f\u3057\u3066\u3044\u306a\u3044\uff0e<\/p>\n<p>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u306f\uff0c\u30bb\u30eb\u3092\u4f5c\u6210\u3057\u30bc\u30ed\u3067\u521d\u671f\u5316\u3059\u308b\uff0c\u305d\u308c\u3060\u3051\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"cells.py-__init__()-lifegame\">def __init__(self, f_shape):\r\n    self.f_shape = f_shape\r\n    self.cells = np.zeros(shape=f_shape, dtype=int)<\/pre>\n<p>\u3042\u3068\u91cd\u8981\u306a\u95a2\u6570\u306f\uff0c<mark>\u5468\u56f2\u306e\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u3092\u6570\u3048\u308b\u95a2\u6570<\/mark>\uff0e<\/p>\n<p>\u3053\u306e\u95a2\u6570\u3067\u306f\uff0cnumpy\u306e<span class=\"lang:python decode:true crayon-inline \">np.count_nonzero()<\/span>\u00a0\u3092\u4f7f\u3063\u3066\u3044\u308b\u304c\uff0c<mark>\u4e2d\u5fc3\u306e\u30bb\u30eb\u3092\u542b\u3081\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/mark>\u5fc5\u8981\u304c\u3042\u308b\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"cells.py-count_alive_cells()-lifegeme\">def count_alive_cells(self, x, y):\r\n    \"\"\"\r\n    Count alive cells surrounding a cell.\r\n    :param x:\r\n    :param y:\r\n    :return:\r\n    \"\"\"\r\n    # indices of surrounding cells.\r\n    ul = y - 1 if (y-1) &gt;= 0 else 0  # upper left\r\n    ur = y + 2 if (y+2) &lt;= (self.f_shape[1]) else self.f_shape[1]  # upper right\r\n    bl = x - 1 if (x-1) &gt;= 0 else 0  # bottom left\r\n    br = x + 2 if (x+2) &lt;= (self.f_shape[0]) else self.f_shape[0]  # bottom right\r\n    # slice\r\n    cells = self.cells[bl:br, ul:ur]\r\n    n_cells = np.count_nonzero(cells)\r\n    return n_cells if not self.is_alive(x, y) else n_cells - 1<\/pre>\n<p>\u3061\u3087\u3063\u3068\u8907\u96d1\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u304c\uff0c\u30b9\u30e9\u30a4\u30b9\u30673\u00d73\u306e\u30bb\u30eb\u3092\u53d6\u308a\u51fa\u3057\u3066\uff0c\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\uff0e<\/p>\n<p>\u305d\u306e\u5f8c\uff0c\u4e2d\u5fc3\u30bb\u30eb\u304c\u751f\u304d\u3066\u3044\u308c\u3070\u30ab\u30a6\u30f3\u30c8\u3092\u4e00\u3064\u6e1b\u3089\u3057\u3066\u3044\u308b\u3060\u3051\uff0e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0%E3%81%AE%E6%A0%B8_lifegame_py\"><\/span>\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306e\u6838 - lifegame.py<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>LifeGame\u30af\u30e9\u30b9\u3067\u306f\u5148\u306eCells\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\uff0c<mark>\u30bb\u30eb\u306e\u60c5\u5831\u3068\u30eb\u30fc\u30eb\u306b\u5247\u3063\u3066\uff0c\u4e16\u4ee3\u3092\u9032\u3081\u3066\u3044\u304f<\/mark>\uff0e<\/p>\n<p>\u3061\u306a\u307f\u306b\u7d99\u627f\u305b\u305a\u306b\u5168\u3066\uff0c\u3053\u306e\u30af\u30e9\u30b9\u306b\u66f8\u3044\u3066\u3082\u826f\u304b\u3063\u305f\u304c\uff0c\u306a\u3093\u3068\u306a\u304f\u7d99\u627f\u3068\u3044\u3046\u5f62\u3092\u3068\u3063\u305f\uff0e<\/p>\n<p>\u4e16\u4ee3\u3092\u9032\u3081\u308b<span class=\"lang:python decode:true crayon-inline \">update()<\/span>\u00a0\u304b\u3089\u898b\u3066\u3044\u304f\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"lifegame.py-update()-lifegame\">def update(self) -&gt; None:\r\n    \"\"\"\r\n    Update next generation\r\n    :return:\r\n    \"\"\"\r\n    next_states = np.zeros(shape=self.cells.shape, dtype=int)\r\n    for y, line in enumerate(self.cells):\r\n        for x, cell in enumerate(line):\r\n            next_states[x][y] = self.get_next_state(self.count_alive_cells(x, y),\r\n                                                    self.is_alive(x, y)\r\n                                                    )\r\n    self.step_next_generation(next_states)<\/pre>\n<p><mark>\u5404\u30bb\u30eb\u306e\u6b21\u4e16\u4ee3\u306e\u72b6\u614b\u3092\u30bc\u30ed\u3067\u521d\u671f\u5316<\/mark>\u3057\u3066\u3044\u308b\u304c\uff0c\u305d\u308c\u305e\u308c\u306e\u30eb\u30fc\u30eb\u306b\u3088\u3063\u3066\u6c7a\u307e\u308b\u72b6\u614b\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5272\u308a\u5f53\u3066\u3066\u3044\u308b\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"lifegame.py-status\">BORN = 0  # \u8a95\u751f\r\nSURVIVE = 1  # \u751f\u5b58\r\nDIE_SPARSE = 2  # \u904e\u758e\u6b7b\r\nDIE_DENSE = 3  # \u904e\u5bc6\u6b7b<\/pre>\n<p>\u305d\u3057\u3066\u305d\u308c\u305e\u308c\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3066\uff0c\u5468\u56f2\u306e\u30bb\u30eb\u306e\u72b6\u614b\u3092\u8a08\u7b97\u3057\uff0c<span class=\"lang:python decode:true crayon-inline \">get_next_state()<\/span>\u00a0\u3067\u6b21\u4e16\u4ee3\u306e\u72b6\u614b\u3092\u53d6\u5f97\u3059\u308b\uff0e<\/p>\n<p>\u3053\u306e\u95a2\u6570\u5b9a\u7fa9\u306f\u3068\u3066\u3082\u5358\u7d14\u3060\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"lifegame.py-get_next_state()-lifegame\">@staticmethod\r\ndef get_next_state(n_cells, my_state) -&gt; int:\r\n    \"\"\"\r\n    Get next state of a cell\r\n    :param n_cells:\r\n    :param my_state:\r\n    :return:\r\n    \"\"\"\r\n    if not my_state and n_cells == 3:\r\n        return BORN\r\n    elif my_state and (n_cells == 2 or n_cells == 3):\r\n        return SURVIVE\r\n    elif my_state and n_cells &lt;= 1:\r\n        return DIE_SPARSE\r\n    else:\r\n        return DIE_DENSE<\/pre>\n<p>\u6b21\u306e\u72b6\u614b\u3092\u53d6\u5f97\u3057\u305f\u3089\uff0c\u305d\u308c\u306b\u5f93\u3063\u3066\u4e16\u4ee3\u3092\u9032\u3081\u308b\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"lifegame.py-step_next_generation()\">def step_next_generation(self, next_states) -&gt; None:\r\n    \"\"\"\r\n    Change all cells' states by the Life Rule\r\n    :param next_states:\r\n    :return:\r\n    \"\"\"\r\n    for y, line in enumerate(self.cells):\r\n        for x, cell in enumerate(line):\r\n            if next_states[x][y] == BORN:\r\n                self.cells[x][y] = 1\r\n            elif next_states[x][y] == DIE_DENSE or next_states[x][y] == DIE_SPARSE:\r\n                self.cells[x][y] = 0\r\n            else:\r\n                self.cells[x][y] = 1<\/pre>\n<p><mark>\u4ee5\u4e0a\u304c\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306e\u6838\u3068\u306a\u308b\u90e8\u5206\uff0e<\/mark><\/p>\n<p>\u3053\u3046\u307f\u308b\u3068\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306f\u3068\u3066\u3082\u5358\u7d14\u306a\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308b\uff0e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"GUI%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0_frame_py\"><\/span>GUI\u30d5\u30ec\u30fc\u30e0 - frame.py<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GUI\u30d5\u30ec\u30fc\u30e0\u306f<mark><strong>wxPython<\/strong><\/mark>\u3068\u547c\u3070\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3053\u306e\u5b9f\u88c5\u306b\u3064\u3044\u3066\u306f\u89e3\u8aac\u3057\u3066\u3044\u308b\u3068\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\uff0c\u5272\u611b\u3059\u308b\uff0e<\/p>\n<p><mark>\u6c17\u306b\u306a\u308b\u4eba\u306f\u30b3\u30fc\u30c9\u3092\u898b\u305f\u65b9\u304c\u65e9\u3044<\/mark>\uff0e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"GUI%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%97_gui_py\"><\/span>GUI\u547c\u3073\u51fa\u3057 - gui.py<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u306eGUI\u30af\u30e9\u30b9\u306f\u6b63\u76f4\u5fc5\u8981\u306a\u3044\u304c\uff0c\u81ea\u5206\u306e\u5b9f\u88c5\u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u3057\u3066\u300cmain(\u95a2\u6570)\u5185\u306f\u3067\u304d\u308b\u3060\u3051\u30b7\u30f3\u30d7\u30eb\u306b\u300d\u304c\u3042\u308b\u306e\u3067\uff0c\u4f5c\u6210\u3057\u305f\uff0e<\/p>\n<p>\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\uff0c<mark>\u5148\u306e\u30d5\u30ec\u30fc\u30e0\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3053\u308c\u3082\u89e3\u8aac\u306f\u5272\u611b\u3059\u308b<\/mark>\uff0e<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%8B%95%E3%81%8B%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B\"><\/span>\u52d5\u304b\u3057\u3066\u307f\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u305d\u308c\u3067\u306f\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u308b\uff0e<\/p>\n<p>\u3053\u308c\u3092\u8aad\u3093\u3067\u3044\u308b\u7686\u3082\u305c\u3072\u52d5\u304b\u3057\u3066\u307f\u3066\u6b32\u3057\u3044\uff0e<\/p>\n<p>\u30b3\u30fc\u30c9\u306fGithub\u306bk (\u4ee5\u4e0b\u7565) \u2192 <a href=\"https:\/\/github.com\/HiroshiARAKI\/lifegame\" target=\"_blank\" rel=\"noopener noreferrer\">\u3010HiroshiARAKI\/lifegame: Simple Conway's Game of Life Simulator on Python!!\u3011<\/a><\/p>\n<p>\u30b2\u30fc\u30e0\u306e\u59cb\u3081\u65b9\u306f\u3059\u3054\u304f\u7c21\u5358\u3067\uff0c<mark>\u6700\u4f4e\u9650\u4ee5\u4e0b\u306e\uff13\u884c\u304c\u3042\u308c\u3070\u826f\u3044<\/mark>\uff0e<\/p>\n<pre class=\"lang:python decode:true \" title=\"LifeGame\u3092\u52d5\u304b\u3059\">from lifegame import GUILifeGame\r\ngame = GUILifeGame()\r\ngame.run()<\/pre>\n<p>\u3053\u308c\u3067\uff0c<mark>50\u00d750\u306e\u30bb\u30eb\u304c\u6b7b\u3093\u3060\u72b6\u614b\u3067\u63d0\u4f9b\u3055\u308c\u308b<\/mark>\uff0e<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-634\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/50x50_init-884x1024.png\" alt=\"50x50_init\" width=\"500\" height=\"579\" srcset=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/50x50_init-884x1024.png 884w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/50x50_init-259x300.png 259w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/50x50_init-768x889.png 768w, https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2019\/10\/50x50_init.png 1000w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u5404\u30bb\u30eb\u3092\u5de6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\uff0c\u30bb\u30eb\u306e\u751f\u6b7b\u3092\u53cd\u8ee2\u3067\u304d\u308b\uff0e<\/p>\n<p>\u3064\u307e\u308a\uff0c<strong><mark>\u64cd\u4f5c\u3057\u3066\u3044\u308b\u4eba\u306f\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u5185\u306e\u795e\u69d8<\/mark><\/strong>\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4e0a\u306e\u30dc\u30bf\u30f3\u985e\u306f\u9806\u306b\uff0c\u300c\u6570\u79d2\u3054\u3068\u306b\u4e16\u4ee3\u3092\u81ea\u52d5\u3067\u9032\u3081\u308b\u300d\u300c\uff11\u4e16\u4ee3\u9032\u3081\u308b\u300d\u300c Run\u3092\u6b62\u3081\u308b\u300d\u300c\u30bb\u30eb\u3092\u5168\u3066\u6b7b\u306e\u72b6\u614b\u306b\u3059\u308b\u300d\u300c\u30e9\u30f3\u30c0\u30e0\u306b\u30bb\u30eb\u3092\u8a95\u751f\u3055\u305b\u308b(0.2\u306e\u5272\u5408)\u300d\u3068\u3044\u3063\u305f\u5177\u5408\uff0e<\/p>\n<p>\u3061\u306a\u307f\u306b\uff0c<\/p>\n<pre class=\"lang:python decode:true \" title=\"GUILifeGame\">game = GUILifeGame(f_shape=(10, 10), time_step=100)<\/pre>\n<p>\u3068\u3059\u308c\u3070\uff0c10\u00d710\u306e\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u3067\uff0c\u81ea\u52d5\u4e16\u4ee3\u4ea4\u4ee3(Run)\u304c\u7d04100\u30df\u30ea\u79d2(0.1\u79d2)\u9593\u9694\u306b\u306a\u308b\uff0e<\/p>\n<p>\u300c<mark><strong>\u7d04<\/strong><\/mark>100\u30df\u30ea\u79d2\u300d\u3068\u3044\u3063\u305f\u306e\u306f\uff0c\u5b9f\u969b\u306b\u306f\u30bb\u30eb\u306e\u6570\u306b\u3088\u3063\u3066\uff0c\u51e6\u7406\u304c\u5897\u3048\u308b\u306e\u3067\u66f4\u65b0\u9593\u9694\u304c\u9577\u304f\u306a\u308b\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<p>\u307e\u305f\uff0c\u30b2\u30fc\u30e0\u3092\u8d77\u52d5\u3059\u308b\u3068\u304d\u306b<\/p>\n<pre class=\"lang:python decode:true \" title=\"GUIlifeGame.run()\">game.run(init_rand=True, rate=0.2)<\/pre>\n<p>\u3068\u3059\u308b\u3068\uff0c\u6700\u521d\u306e\u30bb\u30eb\u306e\u72b6\u614b\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u521d\u671f\u5316\u3067\u304d\u308b\uff0e<\/p>\n<p>\u7b2c\uff12\u5f15\u6570\u306f\u751f\u304d\u3066\u3044\u308b\u30bb\u30eb\u306e\u5272\u5408\uff0e(<mark>1\u306b\u3059\u308c\u3070\u771f\u3063\u9ed2\u306b\u306a\u308b\u304c\u6b21\u306e\u4e16\u4ee3\u3067\u58ca\u6ec5\u3059\u308b<\/mark>)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4eca\u56de\uff0c\u3075\u3068\u601d\u3044\u7acb\u3063\u3066\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u3092\u5b9f\u88c5\u3057\u3066\u307f\u305f\uff0e<\/p>\n<p>\u6700\u521d\u306fCLI\u3060\u3051\u3067\u3044\u3044\u304b\uff0c\u3068\u601d\u3063\u305f\u304c\u300c\u3069\u3046\u305b\u306a\u3089...\u300d\u3068GUI\u7248\u3082\u4f5c\u6210\u3057\u3066\u3057\u307e\u3063\u305f\uff0e<\/p>\n<p>GUI\u5316\u306e\u65b9\u304c\u624b\u3053\u305a\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044...<\/p>\n<p>\u3061\u306a\u307f\u306b\uff0c\u4eca\u56de\u4f5c\u3063\u305f\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306f<mark>100\u00d7100\u3088\u308a\u5927\u304d\u3044\u3082\u306e\u306f\u4f8b\u5916\u51e6\u7406\u3092\u8a2d\u3051\u3066GUI\u304c\u7acb\u3061\u4e0a\u304c\u3089\u306a\u3044<\/mark>\u3088\u3046\u306b\u3057\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\uff0c\u4eca\u56dewxPython\u3067\u4f5c\u3063\u305f\u304c\uff0c<mark>\u30bb\u30eb\u304c\u5927\u304d\u304f\u306a\u308a\u3059\u304e\u308b\u3068\u51e6\u7406\u304c\u304b\u306a\u308a\u91cd\u304f\u306a\u308b<\/mark>\u4e0a\u306b\uff0c\u30a6\u30a3\u30f3\u30c9\u30a6\u30b5\u30a4\u30ba\u3092\u56fa\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\uff0c\u304b\u306a\u308a<mark>\u4e00\u3064\u4e00\u3064\u306e\u30bb\u30eb\u304c\u5869\u7c92\u30b5\u30a4\u30ba\u306b\u306a\u3063\u3066\u3057\u307e\u3046<\/mark>\uff0e<\/p>\n<p>\u3082\u3057\u6c17\u529b\u304c\u3042\u308c\u3070\uff0c\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u5bfe\u5fdc\u3057\u305f\u308a\uff0c\u51e6\u7406\u304c\u91cd\u304f\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u5de5\u592b\u3057\u305f\u3044...\uff08\u3057\u305f\u3044\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u2193<\/p>\n<p><a href=\"https:\/\/github.com\/HiroshiARAKI\/lifegame\" target=\"_blank\" rel=\"noopener noreferrer\">\u3010HiroshiARAKI\/lifegame: Simple Conway's Game of Life Simulator on Python!!\u3011<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30f3\u30c6\u30f3\u30c4 \u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u5168\u4f53\u7684\u306a\u30eb\u30fc\u30eb\u30bb\u30eb\u4e16\u4ee3\u3092\u9032\u3081\u308b\u751f\u5b58\u30eb\u30fc\u30eb\u5b9f\u88c5\u3057\u3066\u307f\u308b\u30bb\u30eb\u306e\u7ba1\u7406 - cells.py\u30e9\u30a4\u30d5\u30b2\u30fc\u30e0\u306e\u6838 - lifegame.pyGUI\u30d5\u30ec\u30fc\u30e0 - frame.pyGUI\u547c\u3073\u51fa\u3057 - gui.py [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":639,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[50,59],"_links":{"self":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts\/616"}],"collection":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":17,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts\/616\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts\/616\/revisions\/652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/media\/639"}],"wp:attachment":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/media?parent=616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/categories?post=616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/tags?post=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}