A tic-tac-toe program that plays and teaches itself to play.