lib/games.rb in games_bfox-0.4.0 vs lib/games.rb in games_bfox-0.6.0

- old
+ new

@@ -1,5 +1,14 @@ -require "games/version" +require File.join('games', 'version') +require File.join('games', 'mastermind') +require File.join('games', 'tictactoe') +require File.join('games', 'shared', 'io_helpers') +require File.join('games', 'shared', 'io_terminal') -module Games - # Your code goes here... +io_helpers = Shared::IOHelpers.new(Shared::IOTerminal.new) +choice = io_helpers.choose_game + +if choice == :tictactoe + TicTacToe.run +elsif choice == :mastermind + Mastermind.run end