Sha256: bd56fe2cc824be2b41ef230d9eb7b07190c4673258708f1c39e388708b2291b1
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require File.join('games','mastermind', 'board') require File.join('games', 'mastermind', 'pegs_factory') 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.6.0 | lib/games/mastermind/board_builder.rb |