Sha256: d65085d1bd3790114e56668652f7edb3c4a92100595a43acf45e934c0bdc1102
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
require_relative 'pegs_factory' 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) ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.3.0 | lib/games/mastermind/board_builder.rb |
games_bfox-0.2.0 | lib/games/mastermind/board_builder.rb |