环境,WinXP/Win7 Perl 5.16 默认循环1000次,按ESC提前退出 use strict; use Term::ReadKey; use Win32::Console; use Time::HiRes 'sleep'; use IO::Handle; STDOUT->autoflush(); system("mode con lines=40 cols=100"); our $OUT=Win32::Console->new(STD_OUTPUT_HAND…
According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970." Given a board with m by n cells, each cell has an initial state live (1…