Just play regular tic-tac-toe with a computer as your opponent.
credits to my computer science club at LME