Method: Conwaymp::Game#initialize

Defined in:
lib/conwaymp/game.rb

#initializeGame



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/conwaymp/game.rb', line 7

def initialize
  @errors = []

  @options = Options.new(parse_options).validate

  if @options.success?
    @board = Board.new(@options)
  else
    display_errors(@options.errors)
  end
end