home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / ttt / build / main.cpp next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  275 b   |  22 lines

  1. // ---------- main.cpp
  2.  
  3. #include "ttt.h"
  4.  
  5. class TTTApp : public Theatrix {
  6. public:
  7.     TTTApp() : Theatrix("Tic-Tac-Toe")
  8.         { ttt=new TicTacToe; }
  9.     ~TTTApp()
  10.         { delete ttt; }
  11. private:
  12.     TicTacToe* ttt;
  13. };
  14.  
  15. int main()
  16. {
  17.     TTTApp app;
  18.     app.go();
  19.     return 0;
  20. }
  21.  
  22.