Problem 52. What is the next step in Conway's Life?
Solution Stats
Problem Comments
- 
		12 Comments
 
I think test sets should be designed to encourage general solutions. At present, the test set only has square boards - some more varied examples would make solvers seek code that is general.
Is there something wrong with the test suite? function B = life(A) B = A; end produces "Error using life Too many output arguments." See comment on solution 1019804.
I suppose the error "Error using life Too many output arguments." is due to shadowing. It seems thet test suite calls \toolbox\matlab\demos\life.m
I had so much fun with this problem. Thank you.
Is there a syntax flaw in the Test Suite? Currently the first test displays with a first line of "%%A = [ ...", and in my solution (S 1435695) only the second test is displayed. Although apparently the first test is still being called (S 1435709)?
Game of life is soo cool!
There's a popular solution that is wrong, and people keep posting it. I am highly amused.
@Cody Team
The link to "Conway's game of Life" is blank!
Thanks for notifying @Peter, I have updated the link.
Am I misunderstanding the rules to the game, or are two of the solutions that the site checks against incorrect
I think the two of the solutions are wrong. Because it may misunderstand the corner...
Pretty neat problem! I made an animation of a toroidal game board of size 100x100. Super cool to see all the bits flipping and patterns.
Solution Comments
Show commentsProblem Recent Solvers661
Suggested Problems
- 
         
Return a list sorted by number of occurrences
2840 Solvers
 - 
         
         
1043 Solvers
 - 
         
Arrange Vector in descending order
12681 Solvers
 - 
         
Remove the two elements next to NaN value
682 Solvers
 - 
         
         
1549 Solvers
 
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!