DEV Community

Discussion on: Pure and Simple - Tic Tac Toe with Javascript

Collapse
 
truepiotrek profile image
truepiotrek

Hey there, I hope I can help :)

First you take the winConditions which is the table with smaller tables marking all possible.. well, win conditions :D And with the code you are asking about you are checking if any of them is created using the same symbol (X or O). If those two conditions are met, the game ends with a win.