{"id":1524,"date":"2015-07-27T01:02:38","date_gmt":"2015-07-26T17:02:38","guid":{"rendered":"http:\/\/www.jdcui.com\/?p=1524"},"modified":"2018-05-23T16:34:48","modified_gmt":"2018-05-23T08:34:48","slug":"conways-game-of-life-%e7%94%9f%e5%91%bd%e6%b8%b8%e6%88%8f","status":"publish","type":"post","link":"http:\/\/www.jdcui.com\/?p=1524","title":{"rendered":"Conway&#8217;s Game of Life [\u751f\u547d\u6e38\u620f]"},"content":{"rendered":"<p><strong>\u751f\u547d\u6e38\u620f<\/strong>\u5176\u5b9e\u662f\u4e00\u4e2a\u96f6\u73a9\u5bb6\u6e38\u620f\uff08<strong><a href=\"http:\/\/baike.baidu.com\/view\/162057.htm\" target=\"_blank\" rel=\"noopener noreferrer\">\u767e\u5ea6\u767e\u79d1<\/a><\/strong>\uff09\uff0c\u8fd9\u4e2a\u5c0f\u6e38\u620f\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u7ef4\u5143\u5305\u81ea\u52a8\u673a\uff08<strong>Cellular Automaton<\/strong>\uff09,1970\u5e74\u7531\u82f1\u56fd\u7684\u6570\u5b66\u5bb6 John Horton Conway \u63d0\u51fa\uff0c\u5173\u4e8e\u751f\u547d\u6e38\u620f\u7684\u4ecb\u7ecd\u53c2\u8003 <strong>Wikipedia\u00a0<\/strong>\u7684\u00a0<strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/The_Game_of_Life\" target=\"_blank\" rel=\"noopener noreferrer\">Conway&#8217;s Game of Life<\/a><\/strong>\u3002<\/p>\n<p>\u6e38\u620f\u4e2d\u751f\u547d\u7684\u6f14\u5316\u89c4\u5219<span style=\"color: #0000ff;\">\uff08The Law of Life Evolution\uff09<\/span>\uff1a<\/p>\n<ul>\n<li><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u5982\u679c\u539f\u5148\u4e3a\u6d3b\u7684\u7ec6\u80de\uff0c\u5176\u5468\u56f4\u6d3b\u7684\u7ec6\u80de\u603b\u6570\u5c11\u4e8e2\u4e2a\uff0c\u5219\u8be5\u7ec6\u80de\u6b7b\u53bb\u3002<span style=\"color: #0000ff;\">(<\/span><\/span>Any live cell with fewer than two live neighbours dies, as if caused by under-population).<\/span><\/li>\n<li><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u5982\u679c\u539f\u5148\u4e3a\u6d3b\u7684\u7ec6\u80de\uff0c\u5176\u5468\u56f4\u6d3b\u7684\u7ec6\u80de\u603b\u6570\u4e3a2\u4e2a\u6216\u80053\u4e2a\uff0c\u5219\u8be5\u7ec6\u80de\u4fdd\u6301\u751f\u547d\u3002<\/span>(Any live cell with two or three live neighbours lives on to the next generation).<\/span><\/li>\n<li><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u5982\u679c\u539f\u5148\u4e3a\u6d3b\u7684\u7ec6\u80de\uff0c\u5176\u5468\u56f4\u6d3b\u7684\u7ec6\u80de\u603b\u6570\u5927\u4e8e3\u4e2a\uff0c\u5219\u8be5\u7ec6\u80de\u5c06\u6b7b\u53bb\u3002<\/span>(Any live cell with more than three live neighbours dies, as if by overcrowding).<\/span><\/li>\n<li><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u5982\u679c\u539f\u5148\u4e3a\u6b7b\u7684\u7ec6\u80de\uff0c\u5176\u5468\u56f4\u6d3b\u7684\u7ec6\u80de\u603b\u6570\u521a\u597d\u4e3a3\u4e2a\uff0c\u5219\u8be5\u7ec6\u80de\u5c06\u91cd\u65b0\u83b7\u5f97\u751f\u547d\u3002<\/span>(Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction).<\/span><\/li>\n<\/ul>\n<p>\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u592a\u62e5\u6324\u4f1a\u6b7b\uff0c\u592a\u5bc2\u5bde\u4f1a\u6b7b\uff0c\u7ed9\u4f60\u70b9\u9633\u5149\u4f60\u5c31\u707f\u70c2\uff01<\/p>\n<p>\u4f9d\u636e\u4ee5\u4e0a\u89c4\u5219\uff0c\u7f16\u5236\u5c0f\u6e38\u620f\uff0c\u5176\u4e2d\u521d\u59cb\u751f\u547d\u4f53\u5bc6\u5ea6\u8bbe\u7f6e\u4e3a0.1\u00a0<span style=\"color: #0000ff;\">(Density of Initial Life were 0.1 )<\/span>\u3002<\/p>\n<p><center><br \/>\n<script src=\"wp-content\/uploads\/ProcessingData\/processing-1.4.8.min.js\" type=\"text\/javascript\"><\/script><canvas data-processing-sources=\"wp-content\/uploads\/ProcessingData\/GameofLive01.pde\"><br \/>\n<\/canvas><\/center><strong>\u6e38\u620f\u8bf4\u660e\uff08<span style=\"color: #0000ff;\">Game Help\uff09<\/span>\uff1a<\/strong><\/p>\n<ul>\n<li>\u9f20\u6807\/\u7a7a\u683c\u952e \u505c\u6b62\u6216\u8005\u5f00\u59cb\u3002<span style=\"color: #0000ff;\">(<strong>Press\u00a0SPACE BAR \/ Click Mouse<\/strong> to pause or to begin.)<\/span><\/li>\n<li>\u952e\u76d8&#8221;R&#8221;\u952e \u91cd\u65b0\u968f\u673a\u751f\u6210\u751f\u547d\u3002<span style=\"color: #0000ff;\">(<strong>Press R<\/strong> to randomly reset the state of all the cells.)<\/span><\/li>\n<li>\u7ea2\u8272\u8868\u793a\u65b0\u589e\u52a0\u7684\u751f\u547d\u3002<span style=\"color: #0000ff;\">(<strong>Red Cell means the cell is\u00a0born<\/strong>.)<\/span><\/li>\n<\/ul>\n<p style=\"text-align: left;\"><strong>PS.<\/strong><br \/>\n\u5f88\u6709\u8da3\u7684\u662f\uff0c\u4ece\u4e00\u5f00\u59cb\u6742\u4e71\u65e0\u7ae0\u7684\u72b6\u6001\uff0c\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u540e\uff0c\u7ec6\u80de\u4f1a\u8fbe\u5230\u4e00\u79cd\u7a33\u5b9a\u5e73\u8861\u72b6\u6001\u3002<\/p>\n<hr \/>\n<p><center><div  class=\"thumbs-rating-container\" id=\"thumbs-rating-1524\" data-content-id=\"1524\"><button class=\"thumbs-rating-up thumbs-rating-voted\" onclick=\"thumbs_rating_vote(1524, 1);\">Vote Up +25<\/button> <button class=\"thumbs-rating-down thumbs-rating-voted\" onclick=\"thumbs_rating_vote(1524, 2);\">Vote Down -1<\/button><span class=\"thumbs-rating-already-voted\">You already voted!<\/span><\/div><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u751f\u547d\u6e38\u620f\u5176\u5b9e\u662f\u4e00\u4e2a\u96f6\u73a9\u5bb6\u6e38\u620f\uff08\u767e\u5ea6\u767e\u79d1\uff09\uff0c\u8fd9\u4e2a\u5c0f\u6e38\u620f\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u7ef4\u5143\u5305\u81ea\u52a8\u673a\uff08Cellular Automaton\uff09,1970\u5e74\u7531\u82f1\u56fd\u7684\u6570\u5b66\u5bb6John Horton Conway\u63d0\u51fa\uff0c\u5173\u4e8e\u751f\u547d\u6e38\u620f\u7684\u4ecb\u7ecd\u53c2\u8003Wikipedia\u7684Conway&#8217;s Game of Life\u3002<\/p>\n","protected":false},"author":1,"featured_media":8620,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[235,4,21],"tags":[208,209,212,233,213,210,234,214],"class_list":["post-1524","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-game-programming-","category-math-geometry","category-programming","tag-ca","tag-cellular-automata","tag-conway","tag-game","tag-game-of-life","tag-210","tag-234","tag-214"],"aioseo_notices":[],"views":5796,"_links":{"self":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts\/1524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1524"}],"version-history":[{"count":0,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts\/1524\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/media\/8620"}],"wp:attachment":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1524"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}