lib/games/tictactoe.rb in games_bfox-0.4.0 vs lib/games/tictactoe.rb in games_bfox-0.6.0
- old
+ new
@@ -1,6 +1,13 @@
-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 }
+# 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 }
+
+require File.join('games', 'shared', 'io_terminal')
+require File.join('games', 'tictactoe', 'io_helpers')
+require File.join('games', 'tictactoe', 'board_presenter_terminal')
+require File.join('games', 'tictactoe', 'board_builder')
+require File.join('games', 'tictactoe', 'players_factory')
+require File.join('games', 'tictactoe', 'game')
class TicTacToe
def self.run
io = Shared::IOTerminal.new
io_helpers = TTT::IOHelpers.new(io)