lib/games/mastermind/board_builder.rb in games_bfox-0.3.0 vs lib/games/mastermind/board_builder.rb in games_bfox-0.4.0

- old
+ new

@@ -1,9 +1,13 @@ require_relative 'pegs_factory' +require_relative 'board' module MM class BoardBuilder - def generate_empty_board(config) - Board.new(number_of_rows: config.number_of_rows, number_of_cols: config.number_of_cols, pegs: PegsFactory.build_empty_pegs(config.number_of_rows, config.number_of_cols), result_pegs: PegsFactory.build_empty_pegs(config.number_of_rows, config.number_of_cols) ) + def generate_empty_board(number_of_rows = 12, number_of_cols = 4) + MM::Board.new(number_of_rows: number_of_rows, + number_of_cols: number_of_cols, + pegs: MM::PegsFactory.build_empty_pegs(number_of_rows, number_of_cols), + result_pegs: MM::PegsFactory.build_empty_pegs(number_of_rows, number_of_cols) ) end end end