I started with the smallest unit i.e Cell, following you can find the Test and implementation class, Keep in mind i start with tests respecting TDD life cycle ( Red Green Refactor). 12 Answers Sorted by: 39 I am going to quote my answer from the other question, because the chapters I mention have some very interesting and fine-tuned solutions. The game is played on an infinite grid of square cells. My attempt was never self initiated but on request of a Person who approached me on freelancing web portal. The Game of Life is a cellular-automaton, zero player game, developed by John Conway in 1970. It can simulate the largest known patterns, including the Tetris Processor (0.1MB, 29201m cells), Caterpillar. Similarly, all other dead cells stay dead. This is an implementation of Conways Game of Life or more precisely, the super-fast Hashlife algorithm, written in JavaScript using the canvas-tag.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |