D
Daniel Moore
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The three rules of Ruby Quiz:
1. Please do not post any solutions or spoiler discussion for this
quiz until 48 hours have elapsed from the time this message was
sent.
2. Support Ruby Quiz by submitting ideas and responses
as often as you can! Visit: <http://rubyquiz.strd6.com>
3. Enjoy!
Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby Talk follow the discussion. Please reply to
the original quiz message, if you can.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## Game of Life (#193)
This weeks quiz is to produce an implementation of [Conway's Game of
Life][1]. The Game of Life is a cellular automaton with simple rules:
1. Any live cell with fewer than two live neighbours dies, as if by
needs caused by underpopulation.
2. Any live cell with more than three live neighbours dies, as if
by overcrowding.
3. Any live cell with two or three live neighbours lives,
unchanged, to the next generation.
4. Any dead cell with exactly three live neighbours becomes a live cell.
It is amazing to see the patterns that can emerge from seemingly
innocuous configurations and a testament to the fact that you don't
need complex rules to generate complex behavior.
If you are new to Ruby then this is a great problem to practice on. It
also offers a good opportunity to become acquainted with some features
of 1.9.1.
[1]: http://en.wikipedia.org/wiki/Conway's_Game_of_Life
Have Fun!
The three rules of Ruby Quiz:
1. Please do not post any solutions or spoiler discussion for this
quiz until 48 hours have elapsed from the time this message was
sent.
2. Support Ruby Quiz by submitting ideas and responses
as often as you can! Visit: <http://rubyquiz.strd6.com>
3. Enjoy!
Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby Talk follow the discussion. Please reply to
the original quiz message, if you can.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
## Game of Life (#193)
This weeks quiz is to produce an implementation of [Conway's Game of
Life][1]. The Game of Life is a cellular automaton with simple rules:
1. Any live cell with fewer than two live neighbours dies, as if by
needs caused by underpopulation.
2. Any live cell with more than three live neighbours dies, as if
by overcrowding.
3. Any live cell with two or three live neighbours lives,
unchanged, to the next generation.
4. Any dead cell with exactly three live neighbours becomes a live cell.
It is amazing to see the patterns that can emerge from seemingly
innocuous configurations and a testament to the fact that you don't
need complex rules to generate complex behavior.
If you are new to Ruby then this is a great problem to practice on. It
also offers a good opportunity to become acquainted with some features
of 1.9.1.
[1]: http://en.wikipedia.org/wiki/Conway's_Game_of_Life
Have Fun!