Well, depends on what platform you need, if you want it with GUI or in console, if you want an unbeatable AI (which is easy to achieve for tic tac toe, you can program it to always end in a tie). It's not that hard to program one yourself tbh, even with AI, as there are just some "Magic Moves".