Class: RubyLife::Game
- Inherits:
-
Object
- Object
- RubyLife::Game
- Defined in:
- lib/ruby_life/game.rb
Instance Method Summary collapse
-
#initialize ⇒ Game
constructor
A new instance of Game.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ruby_life/game.rb', line 7 def run clear_screen i = 0 loop do puts "generation #{i}" puts @grid @grid.generate! animate_transition i += 1 end end |