diff --git a/lib/tic_tac_toe/game.rb b/lib/tic_tac_toe/game.rb index 5c7a989..5fc92e2 100644 --- a/lib/tic_tac_toe/game.rb +++ b/lib/tic_tac_toe/game.rb @@ -3,8 +3,8 @@ class Game attr_accessor :board, :current_player_mark attr_reader :player1, :player2 - def initialize(player1_mark, player2_mark, current_player_mark, cells=nil) - @board = Board.new(cells) + def initialize(player1_mark, player2_mark, current_player_mark, board=nil) + @board = board ||= Board.new @player1 = player1_mark @player2 = player2_mark @current_player_mark = current_player_mark diff --git a/tic_tac_toe-0.0.1.gem b/tic_tac_toe-0.0.1.gem new file mode 100644 index 0000000..92e17e6 Binary files /dev/null and b/tic_tac_toe-0.0.1.gem differ