This classic Tic Tac Toe game for MS-DOS was written in the year 1990 when I was a teenager, so it is not an example of optimal writing in QBasic, rather a case of IT archeology. Anyway, the interesting thing of the program is the implementation of an opening book (like the ones in the chess softwares), which allows the "AI" to reach perfect play. There are 3 levels: weak, medium, unbeatable.
Recently I used QB64 to create the exe for Windows 64 bit.
http://www.teutoburgo.tk/giochi/indexgiochiEnFrame.htmlDirect link to the zip file:
http://www.teutoburgo.tk/giochi/TeutoburgoGames64bit.zipCheers,
Pierre