Method: Tictactoe::Game#initialize

Defined in:
lib/tictactoe/game.rb

#initialize(players_factory, board_size, x_type, o_type) ⇒ Game

Returns a new instance of Game.



10
11
12
13
14
15
16
# File 'lib/tictactoe/game.rb', line 10

def initialize(players_factory, board_size, x_type, o_type)
  self.players_factory = players_factory
  self.board_size = board_size
  self.x_type = x_type
  self.o_type = o_type
  reset
end