This Tic-Tac-Toe demo uses THREE.js rays and ray casters to determine if either user has won.

After each click, it projects a ray for each possible win combination and if it finds sequential intersections with clicks from the sameuser, a winner is declared.

Add your selection code logic to this file. Currently you're playing against a random number generator.

User 1 | User 2