You can get the code here: https://freekode.centeltech.com/post/105/. Or if you just want to play it, click here: https://centeltech.com/hostedFreeKode/games/tic-tac-toe/index.html
You can get so many different types of code at FreeKode. And everyone keeps adding new posts every hour! So don’t code every game you want to play because you want to play it: get it from FreeKode. But if it is coding that you want to do and playing your game is not your greatest desire, you’re very free to do your own stuff.