Class: TicTacToe

Inherits:
Object
  • Object
show all
Defined in:
lib/tictactoe.rb

Class Method Summary collapse

Class Method Details

.runObject



4
5
6
7
8
9
10
# File 'lib/tictactoe.rb', line 4

def self.run
  io = TTT::IOTerminal.new
  board_presenter = TTT::BoardPresenterTerminal.new

  game = TTT::Game.new(io: io, board_presenter: board_presenter)
  game.play
end