lib/ttt.rb
#returns true if there is a winner
returns true if there is a winner
returns true if there is a winner
def winner(board, value, length)
    if winner_row(board, value, length) || winner_column(board, value, length) || winner_diagonal(board, value, length) || winner_diagonal_inverse(board, value, length)== true
      return true
    end
  end
def winner ( board , value , length ) if winner_row ( board , value , length ) || winner_column ( board , value , length ) || winner_diagonal ( board , value , length ) || winner_diagonal_inverse ( board , value , length ) == true return true end end
returns true if there is a winner
returns true if there is a winner
board
value
length