Sha256: 596999ec801bb71eed3af30ce25ccf3367d54150c4ada2b2dafae3cd8735999d
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
require_relative 'pegs_factory' require_relative 'board' module MM class BoardBuilder 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.4.0 | lib/games/mastermind/board_builder.rb |