It’s been a few years, but I finally got around to making my jQuery Tic Tac Toe smarter. Previously, the computer would just pick a random available square, not any more. The computer now figures out if you’re about to win, or if it’s about to win, and makes it’s decision accordingly.