Tic Tac Toe Solver

Challenge 📝

Resources 📚

Given are three arrays. Each array represents a line from the game Tic Tac Toe. One player has 'X' as character and the other 'O'. Return true if a player has won the game. If no player has won, return 'Tie'.

Examples:

['XOX']['XXX']['OXO'] => true
['OXO']['XOO']['XOX'] => 'Tie'

#JavaScript Arrays

Medium

unsolved

function solveTicTacToe(line1, line2, line3) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag