Code skill Using Loops to Check the Board

Use loops to check the rows and columns on the board to see if there is a winner. Then use if statements to check the diagonals. The winner alert will now pop-up for a vertical, horizontal or diagonal line.

See the Pen M1 GB6 by Walker Books UK (@walkerbooks) on CodePen.