码迷,mamicode.com
首页 > 其他好文 > 详细

nullcon HackIM 2016 -- Programming Question 5

时间:2016-02-01 23:57:49      阅读:455      评论:0      收藏:0      [点我收藏+]

标签:

Dont blink your Eyes, you might miss it. But the fatigue and exhaustion rules out any logic, any will to stay awake. What you need now is a slumber. Cat nap will not do. 1 is LIFE and 0 is DEAD. in this GAME OF LIFE sleep is as important food. So... catch some sleep. But Remember...In the world of 10x10 matirx, the Life exists. If you SLOTH, sleep for 7 Ticks, or 7 Generation, In the game of Life can you tell what will be the state of the world?

The world- 10x10

0000000000,0000000000,0001111100,0000000100,0000001000,0000010000,0000100000,0001000000,0000000000,000000000

 

这个游戏叫做 “康威生命游戏”(Conway’s Game of Life):

规则很简单:每个细胞有两种状态--存活或死亡,每个细胞与以自身为中心的周围八格细胞产生互动。
0. 1是活的,0是死亡 
1.如果一个活细胞周围有2至3个活细胞,在下一个阶段继续存活,否则死亡;
2.如果一个死细胞周围有3个活细胞,在下一个阶段将变成活细胞,否则继续保持死亡

这个地址可以在线求解:http://pmav.eu/stuff/javascript-game-of-life-v3.1.1/

flag: 0000000000,0001100000,0001111010,0000001001,0000001010,0000000000,0000000000,0000000000,0000000000,0000000000

康威生命游戏

nullcon HackIM 2016 -- Programming Question 5

标签:

原文地址:http://www.cnblogs.com/Christmas/p/5176464.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!