Class: Rsb::Gol::Cli
- Inherits:
-
Thor
- Object
- Thor
- Rsb::Gol::Cli
- Defined in:
- lib/rsb/gol/cli.rb
Instance Method Summary collapse
Instance Method Details
permalink #start ⇒ Object
[View source]
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rsb/gol/cli.rb', line 13 def start rows, columns = screen_size iterations = .iterations alive = .alive_char dead = .death_char columns = .columns if .columns? rows = .rows if .rows? # ✺ ☻ ⬣ ● ⨀ game = Rsb::Gol::Game.new(cols: columns, rows: rows) game.start(iterations, alive, dead) end |