home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_200 / 270_01 / t3.doc < prev    next >
Text File  |  1979-12-31  |  3KB  |  53 lines

  1.  
  2. /*
  3.      HEADER:      CUG270.01;
  4.      TITLE:       Three dimensional Tic-Tac-Toe;
  5.      DATE:        06/15/1988;
  6.      DESCRIPTION: "Plays a game of three dimensional tic-tac-toe
  7.                    on a board consisting of four levels of four
  8.                    rows by four columns";
  9.      VERSION:     1.0;
  10.      KEYWORDS:    TTT3D, GAMES ;
  11.      FILENAME:    T3.DOC ;
  12.      SEE-ALSO:    T3MAIN.C, T3INIT.C, T3INTRO.C, T3PLAYER.C, T3COMP.C
  13.                   T3DISP.C, T3CONV.C, T3GLOBAL.H ;
  14.      COMPILERS:   vanilla, Microsoft 4.0, UNIX/5 ;
  15.      SYSTEM:      MS-DOS 3.3 ;
  16.      AUTHORS:     Scott Holland ;
  17. */
  18.  
  19. COPYRIGHT 1988   Scott Holland
  20.  
  21. This disk contains a group of C routines and subroutines which
  22. make up a three dimensional tic-tac-toe game program.
  23. All the files associated with this program begin with the characters
  24. T3.
  25.      The introduction to the program describes how to use it.
  26. A summary of the functions of each of the C routines follows.
  27. The main routine (T3MAIN.C) initializes variables and arrays through
  28. a call to init (T3INIT.C). An introduction is printed through the 
  29. routine intro (T3INTRO.C).  The game is then played through properly
  30. sequenced calls to display_board (T3DISP.C), player_move (T3PLAYER.C)
  31. and computer_move (T3COMP.C).  Conv_move and conv_to3 (T3CONV.C) are
  32. used to convert moves to and from an internal representation of 0 to
  33. 63 and the external representation of a three digit number where the
  34. digits represent the level, row and column.  T3GLOBAL.H is used to
  35. define variables and arrays that are used in several of the subroutines.
  36.  
  37.      The player can win the game!  Several additional strategy levels
  38. in T3COMP.C might make the game perfect or a whole different approach
  39. to selecting the computers move might be better.  The strategy used is
  40. based upon an old FORTRAN program (pre 1971).
  41.  
  42.      The display is generated using standard c I/O routines which
  43. should make this program very portable.  I have run prior versions
  44. of the program on UNIX.  A nice graphics display with graphical 
  45. input would make a nice addition to the program but would probably
  46. reduce portability significantly.
  47.  
  48.      The c source and this description file may be freely distributed
  49. for non-commercial purposes.  If any changes are made to these routines
  50. and they are distributed, please note the author, purpose and date
  51. of any changes in the appropriate file headers.
  52.  
  53.