The AI that I was referring to, that played chess, was a predecessor to ChatGPT. I believe it was called Deep Blue.
By the way, ChatGPT, as of May of this year at least, cannot play tic-tac-toe, but it thinks it knows how: https://www.aiweirdness.com/optimum-tic-tac-toe/