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

  1. /*
  2.      HEADER:     CUG270.09 ;
  3.      TITLE:      TTT3D Include File ;
  4.      DATE:       06/08/1988 ;
  5.      VERSION:    1.0 ;
  6.      FILENAME:   T3GLOBAL.H ;
  7.      AUTHORS:    Scott Holland ;
  8.      SEE-ALSO:   T3.DOC ;
  9. */
  10.  
  11. /* COPYRIGHT 1988  SCOTT HOLLAND */
  12.  
  13. int game_over ;
  14. int board[64] ; /* ttt3d game board */
  15. int win_square[76][4] ; /* All the rows that make up wins */
  16. int sum_count[2][4] ;
  17. int move,move1,move2 ; /* Computers move and probable next move */
  18. int strategy ; /* This indicates the strategy level of the
  19.                   computers move
  20.           -2 Illegal move
  21.           -1 Player wishes to quit
  22.            0 No moves taken - first move for player
  23.            1 Player wins
  24.            2 Computer wins
  25.            3 Computer blocks 3 in a row for player
  26.            4 Computer gets 3 in a row in two intersecting rows
  27.            5 Computer blocks two rows with 2 in a row for player
  28.              with an intersecting blank square
  29.            6 Computer finds 2 intersecting 1 intersecting 2
  30.              for computer
  31.              which will result in 2 intersecting 2 after
  32.              forcing player to block a win
  33.            7 Computer finds 2 intersecting 1 intersecting 2
  34.              for player - computer will block with
  35.              intersecting square
  36.            8 Computer finds 2 intersecting 0 intersecting 2
  37.              for computer
  38.              which will result in 2 intersecting 1 intersecting
  39.                      2 
  40.           15 Move taken from move list
  41.           16 No move found
  42.         */
  43. int legal ; /* Indicates if players move is legal */
  44. int diag ; /* used to print diagnostics */
  45. int iq ;
  46.