NxNxN Tic-Tac-Toe

Monday, January 20, 2014 Posted by Josh Staples
In my previous post, I postulated that I would be able to create a NxNxN tic-tac-toe game using the same ray-caster & rays approach.  I've went ahead and did this and refactored my code in to the following object relationship.

Class structure for NxNxN Tic-Tac-Toe

Now you can play a 4x4x4 tic-tac-toe game or one as large 10x10x10

Play the game here:  webgl-code-samples/3D-TTT-N

You can toggle wireframes, the rays and manual control in the top left.

Next implementation will include a smarter computer and maybe a Node.js multiplayer implementation.

Check out the code here at my Github page.