Sha256: 37063da6d7423fc96718fee167ffa8a7fea80c9903a841599d2c801f76cd2dad
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 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__)), 'tictactoe', '*.rb')].each {|file| require file } class TicTacToe def self.run io = Shared::IOTerminal.new board_presenter = TTT::BoardPresenterTerminal.new game = TTT::Game.new(game_module: TTT, io: io, board_presenter: board_presenter) # game.setup game.play end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
games_bfox-0.3.0 | lib/games/tictactoe.rb |
games_bfox-0.2.0 | lib/games/tictactoe.rb |