Sha256: 15c008ad089caaf30ae861577282db7ba0b74c4b43c63bb4c54471d2ad5a0c58
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
Dir[File.join(File.expand_path(File.dirname(__FILE__)), 'shared', '*.rb')].each {|file| require file } Dir[File.join(File.expand_path(File.dirname(__FILE__)), 'mastermind', '*.rb')].each {|file| require file } class Mastermind def self.run io = Shared::IOTerminal.new io_helpers = MM::IOHelpers.new(io) board_presenter = MM::BoardPresenterTerminal.new board_builder = MM::BoardBuilder.new players_factory = MM::PlayersFactory.new(io_helpers) game = MM::Game.new( io_helpers: io_helpers, board_presenter: board_presenter, board_builder: board_builder, players_factory: players_factory ) game.play end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.4.0 | lib/games/mastermind.rb |