lib/games/tictactoe/board_builder.rb in games_bfox-0.3.0 vs lib/games/tictactoe/board_builder.rb in games_bfox-0.4.0
- old
+ new
@@ -1,10 +1,10 @@
+require_relative 'board'
require_relative 'squares_factory'
module TTT
class BoardBuilder
- def generate_empty_board(config)
- number_of_rows_cols = config.number_of_rows_cols
- Board.new(rows_and_cols: number_of_rows_cols, squares: SquaresFactory.build_empty_squares(number_of_rows_cols) )
+ def generate_empty_board(number_of_rows_cols)
+ Board.new(squares: SquaresFactory.build_empty_squares(number_of_rows_cols) )
end
end
end