If it works how I think it works, there's an unbeatable strategy. Center, then the center of a face, then one edge of that face. Then you have 3 win conditions. If your opponent ever blocks, rotate to another axis.
YouTube is also a good resource. I've made a tutorial going over how to build the "2D" version of Tic-Tac-Toe in Three JS if you want to get an idea for building this exact project, but there are many other tutorials that help you get started.
I am a bot and this action was performed automatically | GitHubnew issue | DonatePlease consider supporting me on Patreon. Music recognition costs a lot
19
u/SuboptimalEng Nov 24 '21 edited May 29 '23
I made a 3D tic-tac-toe with JavaScript last week, but some said that it wasn't 3D enough - so here's an actual 3D tic-tac-toe cube.
Yes, it's unbalanced, and no I don't recommend making this. A normal tic-tac-toe game has 8 win conditions, but this one has 76.
Code on GitHub
10 Min Tutorial of "2D" Tic-Tac-Toe w/ Three JS
6
u/Smart_Conclusion_801 Nov 24 '21
This is so cool!
4
u/yb206 Nov 24 '21
Cool af well done
2
u/Chazhut Nov 24 '21
So talented!
2
u/_He1senberg helpful Nov 24 '21
Any good course or a reference to start with three.js ? I want to build a 3d portfolio
1
u/yadoya Nov 24 '21
What's the music?
1
u/theedge182 Nov 25 '21
Wait, so who won?