home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 248.lha / Connect_4 / Connect4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-29  |  533 b   |  17 lines

  1.  
  2. /*      Connect4.h - Structs for Connect4
  3. *
  4. *       Mitchell/Ware           Version 1.00            12/13/87
  5. *
  6. */
  7.  
  8. typedef struct  c4board
  9. {
  10.         char    border1[3][6+3]; /* fill with -2's */
  11.         char    b[7][6+3];        /* board x-y, 0,0 is at lower left */
  12.         char    border2[3][6+3]; /* fill with -2's */
  13.         int     pos[7];         /* next availiable slot   */
  14.         int     nextmove[7];    /* eval of the next seven possibilities  */
  15. } C4BOARD;
  16.  
  17. #define sgn(_x)         ( (_x) ? ( ((_x) < 0) ? -1 : 1 ) : 0 )