home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / go / prog / sgf2mi13.taz / sgf2mi13 / gorules.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-27  |  1.6 KB  |  58 lines

  1. /* #[info:            */
  2. /************************************************************************
  3.  *                                    *
  4.  *             ####   ####  ####   #     # #      #####  ####           *
  5.  *            #      #    # #   #  #     # #      #     #               *
  6.  *            #      #    # #  #   #     # #      #     #               *
  7.  *            #  ##  #    # ###    #     # #      ###    ###            *
  8.  *            #    # #    # #  #   #     # #      #         #           *
  9.  *            #    # #    # #   #  #     # #      #         #           *
  10.  *             ####   ####  #    # ####### ###### ##### ####            *
  11.  *                                    *
  12.  *                Jan van der Steen                *
  13.  *                                    *
  14.  *          Centre for Mathematics and Computer Science        *
  15.  *              Amsterdam, the Netherlands            *
  16.  *                                    *
  17.  *----------------------------------------------------------------------*
  18.  * File   : gorules.h                         *
  19.  * Purpose : Implement the Japanese Go Rules                *
  20.  * Version : 1.1                        *
  21.  * Modified: 11/8/92 17:00:53                        *
  22.  * Author  : Jan van der Steen (jansteen@cwi.nl)            *
  23.  ************************************************************************/
  24. /* #]info:            */ 
  25.  
  26. #ifndef __GORULESH
  27. #define __GORULESH
  28.  
  29. /* #[include:            */
  30.  
  31. #include "gogame.h"
  32.  
  33. /* #]include:            */ 
  34. /* #[define:            */
  35.  
  36. #define RULES_LEGAL    0
  37. #define RULES_OCCUPIED    1
  38. #define RULES_KO    2
  39. #define RULES_SUICIDE    3
  40. #define RULES_OUTSIDE    4
  41.  
  42. /* #]define:            */ 
  43. /* #[prototype:         */
  44.  
  45. #ifdef __STDC__
  46. #    define    PROTO(s) s
  47. #else
  48. #    define    PROTO(s) ()
  49. #endif
  50.  
  51. int    rules_check    PROTO((GOGAME *gogame, PLACE place, int side));
  52.  
  53. #undef PROTO
  54.  
  55. /* #]prototype:         */ 
  56.  
  57. #endif
  58.